DEV Community

Discussion on: Using MobX with React Hooks

Collapse
 
ryands17 profile image
Ryan Dsouza

Good question! If you're just going to deploy your React app as a static website i.e. client-side rendering, you can directly import the store instance it wouldn't make any difference, but for server-side rendering, passing the store via context is essential. I will also be making an example on server-side rendering with MobX