When you reuse a component, there are times when you’d like that state to share the same values as other instances of that state. In other cases, you want to isolate your state.
With Jotai, you only need to wrap your components that you want to share state in Jotai’s <Provider>
component the subsequent atom (and XState machine) state is shared for those components.