Connect MobX observer components to the store with the React Provider

Share this video with your friends

Send Tweet

Passing down stores through each layer of components can be a tedious job. This lesson demonstrates how Provider can be used to automatically connect observer based components to stores, by leveraging React's context mechanism in the background.

Viktor Soroka
Viktor Soroka
~ 3 years ago

You need to include Provider from MobX. At least code attached to the lecture is working for me.