Рет қаралды 2,208
How can you manage your React application's state with Jotai. What is the atomic approach that Jotai takes to the global state management? How can we combine atoms to create more complex logic for our state? What are Primitive Atoms and Derived Atoms?
- timestamps -
00:00 - Intro - What is Jotai?
01:02 - How to install Jotai?
01:31 - Creating "Primitive Atom"
03:53 - Reading state with "useAtom" hook
04:36 - Creating controlled input with Jotai
05:45 - Intro to "Derived Atoms"
06:51 - Creating "Derived Atom"
09:06 - Setting another atom with Derived Atom
12:06 - Reading another atom with Derived Atom
15:17 - Creating "sorting functionality" with Derived Atom
Source Code: github.com/batuhanbilginn/jot...
Learn more: makr.dev
#react #statemanagement #nextjs #jotai