4 ms·
What is the alternative? For when you have a stateful component that "reacts" to new parameters.
by spicyj 9y ago
What is the alternative? For when you have a stateful component that "reacts" to new parameters.
- pknopf 9y agoMobx uses observables to monitor what properties you read and collections you enumerate during your render method. It then uses that information to implement shouldComponentUpdate for you. Each render call refreshes the data use by shouldComponentUpdate. It gives you 100% percise updating of react components based on state, for free.