3 ms·
The value of mobx is that you implicitly link each component to its data dependencies by dereferencing arbitrary paths into your storage objects in the render()
by hombre_fatal 8y ago
The value of mobx is that you implicitly link each component to its data dependencies by dereferencing arbitrary paths into your storage objects in the render() function so that the component rerenders only when data at those paths change.
Does the Context achieve this as well? From a quick search, the Context seems to force rerender of any consumer on any change.
- revskill 8y agoYou can use library like reselect to optimize. The job of context is simple: implicitly passing down value to deep component.