The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Connect MobX observer components to the store with the React Provider

Connect MobX observer components to the store with the React Provider

1:33
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
nader dabit

I'm having a hard time getting the final code to run. I'm getting MobX observer: Store 'temperatures' is not available! Make sure it is provided by some Provider as an error message. I've also tried running the example jsbin with my own api key and it doesn't seem to work. Any ideas? Thanks.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?