WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/r4Kro2elpd-ShJIsi=51b2XP_84GH3q6oF
@MrRafaellbc2 жыл бұрын
Very nice, straight to the point tutorial. Thank you!
@MonsterlessonsAcademy2 жыл бұрын
You are welcome!
@giorgiinjgia6401 Жыл бұрын
06:16 I didn't get why store re-creation renders the component
@toanta48387 ай бұрын
because of setInputValue()
@TheScottShepard3 ай бұрын
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.
@MonsterlessonsAcademy3 ай бұрын
Glad to hear that
@bwustinbweem2 жыл бұрын
Use mobx for my job. I hated it at first but now I love it
@MonsterlessonsAcademy2 жыл бұрын
It's a good a stable tool!
@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 Жыл бұрын
It is it's gruvbox.
@seemapatil1225 Жыл бұрын
short and nice video to understand thanks
@MonsterlessonsAcademy Жыл бұрын
You are welcome
@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 Жыл бұрын
Mobx is much less popular in compsrison to Redux. Nobody prevents you to use it in Next but most tutorial would use Redux.
@giorgikiladze1151 Жыл бұрын
thank you it was really helpful
@MonsterlessonsAcademy Жыл бұрын
Glad it helped!
@piotrekjazz12872 жыл бұрын
Do you relly have to use a class inside the store instead of function as everywhere else?
@MonsterlessonsAcademy2 жыл бұрын
Yes it is the mobx concept
@TheScottShepard3 ай бұрын
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.
@benchik1006 ай бұрын
very nice!
@MonsterlessonsAcademy6 ай бұрын
Thanks!
@naveed-h2 жыл бұрын
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.
@MonsterlessonsAcademy2 жыл бұрын
Redux immutable, Mobx not. Redux single state, Mobx not. Redux pure state, Mobx not. Redux updates tracked manually, Mobx not.
@naveed-h2 жыл бұрын
@@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?
@MonsterlessonsAcademy2 жыл бұрын
@@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 Жыл бұрын
Why do you think redux is more scalable?
@ericsuzuki89667 ай бұрын
@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.
@TadeasF8 ай бұрын
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
@boycovclub2 жыл бұрын
Very good, thank you
@MonsterlessonsAcademy2 жыл бұрын
Thank you too!
@sliceem882 жыл бұрын
Nice video! Can you compare Context vs MobX??
@MonsterlessonsAcademy2 жыл бұрын
Context is low level do it yourself. Mobx is magic box and small amount of code. I prefer either context or redux.
@sliceem882 жыл бұрын
@@MonsterlessonsAcademy tnx, appreciate it. Perfect answer
@shableep Жыл бұрын
@@MonsterlessonsAcademyCan you explain further why you prefer context and redux over MobX?
@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ы2 жыл бұрын
"Jotai" - more lightweight state lib base on proxy
@MonsterlessonsAcademy2 жыл бұрын
Yeap
@manee4272 жыл бұрын
@@MonsterlessonsAcademy What do you personally prefer for project?