Using MobX to Isolate a React Component State

Share this video with your friends

Send Tweet

React is great for diffing between Virtual-DOM and rendering it to the dom. It also offers a naïve solution for diffing state in terms of setState. However it is slightly verbose and not easy to scale. MobX offers a very simple and effective solution to manage state in React components.

Basarat Ali Syed
Basarat Ali Syedinstructor
~ 3 years ago

Code at https://github.com/basarat/mobx-typescript-react 🌹

tato1967
tato1967
~ 2 years ago

Where is typescript? There is no typescript here

Basarat Ali Syed
Basarat Ali Syedinstructor
~ 2 years ago

Indeed TypeScript is very transparent (as it should be) : https://basarat.gitbooks.io/typescript/docs/why-typescript.html 🌹