Duration
2 min
Access
Free
Transcript
Available

Now that we have a lot of functionality finished for this example, we'd like to create multiple components (or multiple canvases) that you can draw on.

You'll notice that if you do that right now, drawing on one will draw on the other because state is global to the entire application.

Jotai exposes a Provider component that allows you to wrap any part of your application that you want to isolate state to.