DEV Community

loading...

Discussion on: Using MobX with React Hooks

Collapse
rthomson3 profile image
Robert

Great article showing how to use hooks with a classic mobx store.
For the case where the class store has a constructor with parameters say new Todos(param1, param2), how would those be passed using createContext in your example without breaking reactivity?