Isolate State in an Application with Jotai Provider

InstructorDaishi Kato

Share this video with your friends

Send Tweet

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.

cognivore
~ 3 years ago

It's so simple and elegant that Daishi gets BoundingClientRect from the event's target! I was always dragging a React ref around like a fool.

Thank you, Kato san!

Yash Kadaru
~ 2 years ago

wow. what an ending haha! I love how the entire series is built from a simple concept - thank you, explains the concepts and subsequent benefits of Jotai, quickly. However, I wish it were a little slower in parts, and the overview at the end of each video was a little more detailed.

Gush
~ a year ago

Concise and good, go over many issues and use cases. What I would love:

  • loader audio level
  • A bit more complex examples, so to show architecture and good practices in a complex situations and to serve as review of previous concepts learned
  • Slower pace, just a bit The platform could use finer speed variation, how about adding 0.75, 0.9 and 1.1 speeds?