Mobx React - State Management Alternative to Redux

  Рет қаралды 10,186

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

Пікірлер: 45
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/r4Kro2elpd-ShJIsi=51b2XP_84GH3q6oF
@MrRafaellbc
@MrRafaellbc 2 жыл бұрын
Very nice, straight to the point tutorial. Thank you!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
You are welcome!
@giorgiinjgia6401
@giorgiinjgia6401 Жыл бұрын
06:16 I didn't get why store re-creation renders the component
@toanta4838
@toanta4838 7 ай бұрын
because of setInputValue()
@TheScottShepard
@TheScottShepard 3 ай бұрын
I’ve been an Angular dev since the very first AngularJS release. I have taken over a React project. I was really starting to hate React until I discovered MobX. Now I might like React+MobX more than Angular.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
Glad to hear that
@bwustinbweem
@bwustinbweem 2 жыл бұрын
Use mobx for my job. I hated it at first but now I love it
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
It's a good a stable tool!
@everurstruly
@everurstruly Жыл бұрын
I wished there was a VSCode theme like the one he uses. Great video btw! love how you explained the concepts rather than just type and read code all through the video
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
It is it's gruvbox.
@seemapatil1225
@seemapatil1225 Жыл бұрын
short and nice video to understand thanks
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
You are welcome
@giorgikiladze1151
@giorgikiladze1151 Жыл бұрын
i actually have a quastion is it common to use mobX with next 13. I am asking because didnt find any tutorial in youtube and also in documentation
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Mobx is much less popular in compsrison to Redux. Nobody prevents you to use it in Next but most tutorial would use Redux.
@giorgikiladze1151
@giorgikiladze1151 Жыл бұрын
thank you it was really helpful
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Glad it helped!
@piotrekjazz1287
@piotrekjazz1287 2 жыл бұрын
Do you relly have to use a class inside the store instead of function as everywhere else?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Yes it is the mobx concept
@TheScottShepard
@TheScottShepard 3 ай бұрын
The class is the store. It’s a much better way to organize your code than just a giant state machine. Use discrete classes or classes inside of classes like a “real” object-oriented language would and use TSX just for rendering.
@benchik100
@benchik100 6 ай бұрын
very nice!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 6 ай бұрын
Thanks!
@naveed-h
@naveed-h 2 жыл бұрын
What is it exactly that redux can do and mobX can't? Can you give us an example? I don't understand the theocratical statement that redux is more flexible.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Redux immutable, Mobx not. Redux single state, Mobx not. Redux pure state, Mobx not. Redux updates tracked manually, Mobx not.
@naveed-h
@naveed-h 2 жыл бұрын
@@MonsterlessonsAcademy Thanks for the reply. But these are the design decisions made by the authors of the two libraries. What I want to know is if there is a use case where mobX fails but redux succeeds? Why is redux design choice better and what makes its verbosity and complexity worth it?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
@@naveed-h It is not like one fails and other not. But this design decisions are important to why Redux is easier to scale/support even with Redux verbosity.
@MichaelScharf
@MichaelScharf Жыл бұрын
Why do you think redux is more scalable?
@ericsuzuki8966
@ericsuzuki8966 7 ай бұрын
@naveed-h My first impression with Redux was that it's tedious, but because Redux has a very opinionated structure, I'm guessing it's easier to collaborate on and less error-prone. (Redux code is more verbose and strict in its syntax and structure, therefore less open to interpretation and isn't subjected to each individual developer's preferences). It's scalable for teams for the same reason typescript is scalable, although typescript requires much more effort compared to JavaScript.
@TadeasF
@TadeasF 8 ай бұрын
viva la observers, comment for the algo! i remember that i saw your video when I was picking which state manager i'll start using. mobx won cuz i am not a software developer but a data engineer, so i maionly build hobby projects with teams that have no other choice than accept my opinionated tooling, hehe. but yeah, i wouldnt start a project with redux or touch it with a 10 foot pole with current state of mobx
@boycovclub
@boycovclub 2 жыл бұрын
Very good, thank you
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Thank you too!
@sliceem88
@sliceem88 2 жыл бұрын
Nice video! Can you compare Context vs MobX??
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Context is low level do it yourself. Mobx is magic box and small amount of code. I prefer either context or redux.
@sliceem88
@sliceem88 2 жыл бұрын
@@MonsterlessonsAcademy tnx, appreciate it. Perfect answer
@shableep
@shableep Жыл бұрын
@@MonsterlessonsAcademyCan you explain further why you prefer context and redux over MobX?
@justin.johnson
@justin.johnson Жыл бұрын
​​@@shableepI'm not entirely sure either. Context re-renders the whole tree of one small child button needs to update. Unnecessary re-renders are bad
@ГенаПетров-н5ы
@ГенаПетров-н5ы 2 жыл бұрын
"Jotai" - more lightweight state lib base on proxy
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Yeap
@manee427
@manee427 2 жыл бұрын
@@MonsterlessonsAcademy What do you personally prefer for project?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
@@manee427 Redux
@manee427
@manee427 2 жыл бұрын
@@MonsterlessonsAcademy Thanks
@justin.johnson
@justin.johnson Жыл бұрын
Mobx > Zustand > Jotai > Redux
@andTutin
@andTutin 2 жыл бұрын
I liked @ syntax
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Yeap
Introduction to React #14 | MobX
11:51
Jack Herrington
Рет қаралды 10 М.
Npx vs Npm - They Are Not the Same
5:43
Monsterlessons Academy
Рет қаралды 5 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Why I Moved from React Redux to Zustand and Why You Should Too!
19:24
Intro to MobX-State-Tree
15:23
Jamon's Code Quests
Рет қаралды 6 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 211 М.
MobX Tutorial with React and Typescript
35:53
CodeDunks
Рет қаралды 19 М.
MOBX ПРОТИВ REDUX | РАЗБИРАЕМСЯ ЧТО ЛУЧШЕ
35:24
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 495 М.
Typescript for React and MobX From Beginners to Masters
13:03
Jack Herrington
Рет қаралды 43 М.
Angular 19 is a BEAST of a release!
19:39
Maximilian Schwarzmüller
Рет қаралды 56 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН