Looking for a better way to manage global state in your React apps? In this video, we explore an innovative React state management library that simplifies your workflow while maximizing efficiency. Discover how atomic state works, why it's a game-changer for developers, and how you can implement it in your projects with ease. Whether you're building small-scale apps or large enterprise apps, this tool will revolutionize the way you handle state.
The tool/library in question is Jotai. In this video, you'll learn what Jotai & atomic state is, how to get it into your app, how to create and access atoms, and how to scope atoms to create instances that are non-global.
Jotai Docs: https://jotai.org/docs
Timestamps:
0:00 - Intro
1:05 - Creating an atom
2:29 - Atom example
4:00 - useAtomValue & useSetAtom
5:36 - Global example
7:09 - Global example 2 (navbar)
10:18 - Atom Scoping (Non global)