State Management for React: Jotai From Beginners to Masters

  Рет қаралды 25,069

Jack Herrington

Jack Herrington

Күн бұрын

Пікірлер: 31
@Norfeldt
@Norfeldt 3 жыл бұрын
I feeling I have found a gold mine when I found this channel. It's a fantastic way to learn both typescript and get to know the current state management options in react
@Booyamakashi
@Booyamakashi 2 жыл бұрын
True, true.
@ToddPressleyy
@ToddPressleyy Жыл бұрын
Thanks for the awesome content, Jack!
@aldelta19
@aldelta19 Жыл бұрын
Love the channel! Can you help me understand what's going on here? The project builds, but I just get a white, blank page. ./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs Can't import the named export 'Children' from non EcmaScript module (only default export is available)
@CodingNuggets
@CodingNuggets 3 жыл бұрын
Have never heard or seen Jotai. So interesting these different state managers. I still think I'll just stick with Redux or React Query. I'm really loving React Query and trying to use it when I can. Appreciate the content Jack. Much love and respect my friend!
@jherr
@jherr 3 жыл бұрын
Yeah, I need to do some more stuff on `react-query`. Tanner is doing an awesome job on that. And I'm intrigued about the potential of it getting integrated into Jotai so that any atom can be its own managed query.
@xan3xx443
@xan3xx443 2 жыл бұрын
5:35 tf todo do todo into the todo got me tripping brah
@jeffinj7707
@jeffinj7707 2 жыл бұрын
Great content 👍🏽
@sevdacimen2321
@sevdacimen2321 2 жыл бұрын
awesome work ! Clear and easy example thank you Jack
@lost-prototype
@lost-prototype Жыл бұрын
There's a simplicity to this that I just love. What would you say to people who feel it is too similar to global state?
@jherr
@jherr Жыл бұрын
So when you say global state do you mean redux? Because there are a bunch of state managers and the my have different ways to model state.
@lost-prototype
@lost-prototype Жыл бұрын
@@jherr I guess the main contrast would be with prop drilling and more significantly (IMO), utility components with "onChange" callbacks littered everywhere.
@techhguy
@techhguy 3 жыл бұрын
Awesome as always! Thank you, Jack.
@quelchx
@quelchx 2 жыл бұрын
I'm curious, if you had to choose one or the other which would you choose between Jotai and Zustand for a state manager? Let's take managing user auth and say a cart state? I used both to write logic for managing auth state and a color palette state, I found both very good libraries but I wanted others input on if they had one what would they use.
@jherr
@jherr 2 жыл бұрын
Personally I would choose Jotai because I'm fascinated by atomic state and I have a hunch that it's the future. Professionally I would choose Zustand because it's simple, conventional, and very popular.
@quelchx
@quelchx 2 жыл бұрын
@@jherr thanks for the response. I was watching your video on react context as a state provider a bit ago and when you showcased Zustand , I enjoyed how simple it was to implement + it didn't cause any unnecessary re-renders (I'm comparison to say react context patterns I see). My question I guess would be with Jotai would it cause re-renders similar to react context since it needs a provider as a HOC of sorts? Not sure if I make sense or not.
@jherr
@jherr 2 жыл бұрын
@@quelchx Jotai has the same performance in terms of re-renders as Zustand. That being said, I think there is a lot of unnecessary concern about re-renders. React is VDOM framework that is optimized to handle re-renders very quickly.
@quelchx
@quelchx 2 жыл бұрын
@@jherr appreciate your input and time -- thank you 🙂
@SwOOp_de
@SwOOp_de 4 ай бұрын
Jack has a really nice calm voice!
@seanknowles9985
@seanknowles9985 2 жыл бұрын
We need more of jotai vs recoil or in depth on both. Would be amazing.
@lydstyl
@lydstyl Жыл бұрын
Thank you, I will get it a try.
@eleah2665
@eleah2665 3 жыл бұрын
Hello Jherr - this series is always interesting. Thanks.
@francorocchia6982
@francorocchia6982 2 жыл бұрын
Such a good video! Thanks Jack
@allanpalomares7574
@allanpalomares7574 Жыл бұрын
Do you have sample that does not use typescript? Every sample I see are using typescript that makes me more confused
@jackh3242
@jackh3242 3 жыл бұрын
Underrated channel
@shlomomoller7440
@shlomomoller7440 2 жыл бұрын
Can you please make an example where adding and setting a todo use an async atom?
@alextonev4145
@alextonev4145 Жыл бұрын
I am confusion
@gokulram423
@gokulram423 2 жыл бұрын
How can access the jotai state in Axios interceptor
@jherr
@jherr 2 жыл бұрын
Jotai state appears to only be accessible within the jotai atom get/set functions or in the React component context. So I would set an external value in the atom set function and then use that value in Axios. I'm assuming you are storing the JWT in an atom.
@armandsalle8447
@armandsalle8447 2 жыл бұрын
React + TS + atomic design (atoms, molecules, organisms, templates, pages etc..) + Jotai = ❤️❤️❤️
Typescript for React and MobX From Beginners to Masters
13:03
Jack Herrington
Рет қаралды 41 М.
Typescript for React and Effector From Beginners to Masters
17:36
Jack Herrington
Рет қаралды 10 М.
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,9 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 5 МЛН
Rebuilding Jotai State Manager for React in 20 Minutes!
20:25
Jack Herrington
Рет қаралды 32 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 97 М.
Mastering React Memo
26:56
Jack Herrington
Рет қаралды 135 М.
Jotai React - Better Global State Management
10:28
Monsterlessons Academy
Рет қаралды 23 М.
Jotai Async
18:47
Sinclair Software
Рет қаралды 1,6 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 208 М.
Will React's New Cache Fix Its "Use" Hook?
19:41
Jack Herrington
Рет қаралды 48 М.
iPhone Standby mode dock, designed with @overwerk
0:27
Scott Yu-Jan
Рет қаралды 6 МЛН
Проверил, как вам?
1:01
Коннор
Рет қаралды 1,5 МЛН
Куда пропал Kodak?
1:01
MOTIVESSION
Рет қаралды 9 МЛН
Google Pixel 8 Pro на 128 gb! Илии.... #shorts #shortvideo
0:20
UNIT | ЮНИТ | IPHONE 15
Рет қаралды 1,6 МЛН
Почему нужно включать режим самолета 😰
0:39
А ты уже обновился на IOS 18 ?😅 #айфон #apple #ios #ios18 #iphone
1:00