The proper way to do GLOBAL STATE in React - Jotai, Boiletplate-free Redux

  Рет қаралды 5,061

RavenJS

RavenJS

11 ай бұрын

Global State Variables in React without Redux or boilerplate. Jotai takes an atomic approach to global React state management inspired by Recoil.
PocketBase Crash Course Playlist:
• PocketBase Crash Course
Jotai Docs:
jotai.org/
Hostinger Promo Code: RAVENJS
hostinger.com/ravenjs
(use code RAVENJS for 10% off all products/plans)

Пікірлер: 18
@billionaireempire3852
@billionaireempire3852 26 күн бұрын
Thank you brother. Exactly what I needed
@wahikedeewane2682
@wahikedeewane2682 11 ай бұрын
Preety good stuff Keep posting ❤❤
@hussainmustafa9552
@hussainmustafa9552 5 ай бұрын
A very helpful and concise video 👍. Keep up the good work.
@douglasmatosdev
@douglasmatosdev 7 ай бұрын
Here in Brazil. Waiting for more content
@sunflwer
@sunflwer 10 ай бұрын
love your vids
@ThanhNguyen-ho7yo
@ThanhNguyen-ho7yo Ай бұрын
very clear!
@sbinalla4205
@sbinalla4205 8 ай бұрын
Thank you
@laurentvideo1703
@laurentvideo1703 10 ай бұрын
really good please post!
@Raghunadh9
@Raghunadh9 3 ай бұрын
Thank you sir
@sunflwer
@sunflwer 10 ай бұрын
post the video broda
@TheRolldone
@TheRolldone 2 ай бұрын
i read article about 7 top react state management. and jotai is easy to learn.
@alwaysdjango
@alwaysdjango 5 ай бұрын
Thanks bro
@sunflwer
@sunflwer 10 ай бұрын
heyyy post more of the pocketbase too
@parmetra
@parmetra 2 ай бұрын
Thanks for the review! Everything is very well explained. But I still have one question: what is the difference between Jotai and Zustand, and also in which case should one or the other be used?
@skillz121212
@skillz121212 9 ай бұрын
Hi! Just as a tip when doing todos.map() you can pass in .map(todo, index) and it will create an auto-incremented index for you that you can use as your key :D (If you already knew this then this may just be for some other random viewer who doesn't yet)
@alwazkazi1916
@alwazkazi1916 8 ай бұрын
Using index as key is not a good practice. If the list is dynamic key should be a unique id. for static using index is fine.
@english51
@english51 5 ай бұрын
awesome video, but need 2k or 4k to see things clear hehe.
@user-vy5yh8zx9c
@user-vy5yh8zx9c 8 ай бұрын
🎯 Key Takeaways for quick navigation: 00:28 🚀 React developers often face boilerplate issues with global state management. 00:41 🔄 Jotai is a tool that simplifies global state management in React without complex Redux functionality or prop drilling. 02:30 🌐 Create a global variable in Jotai using `atom` to manage state across components easily. 04:18 🧩 Use Jotai's `useAtom` function similar to React's `useState` for intuitive state management. 07:36 💾 Jotai supports persistence with `atomWithStorage`, allowing state to persist across page reloads using local storage. 09:51 🚫 Optimize re-renders by using `useSetAtom` in components that only write to the global state, preventing unnecessary renders. Made with HARPA AI
Jotai React - Better Global State Management
10:28
Monsterlessons Academy
Рет қаралды 20 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 162 М.
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 13 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 21 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 190 МЛН
Do This Instead Of Representing State With Booleans
12:23
Joy of Code
Рет қаралды 114 М.
Global State with Context in React - React context
17:42
Weibenfalk
Рет қаралды 20 М.
I Tried 5 Redux Alternatives and Here is the Best one
16:48
CoderOne
Рет қаралды 21 М.
Jotai Async
18:47
Sinclair Software
Рет қаралды 1,2 М.
Mastering React Context: Do you NEED a state manager?
37:26
Jack Herrington
Рет қаралды 97 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Why I Moved from React Redux to Zustand and Why You Should Too!
19:24
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 458 М.
State Management for React: Jotai From Beginners to Masters
16:56
Jack Herrington
Рет қаралды 23 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,2 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 1,9 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,4 МЛН
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 15 МЛН