1. 3
    Share and Isolate XState State using Jotai Provider
    2m 20s

Share and Isolate XState State using Jotai Provider

InstructorDaishi Kato

Share this video with your friends

Send Tweet

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.