Skip to content

Conversation

@matejlauko
Copy link

Adds basic boilerplate setup for isomorphic mobx.

  • mobx stores are created in common/createStores.js
  • they can be populated with data from server
  • data is dumped to HTML during server render and hydrated to client stores

Contains a sample store (browser/store.js) with component integration & examples in App.react.js. (maybe they should be deleted from the boilerplate?)

Mobx react devtools also added for easier debugging.

Second commit contains couple of unit tests for createStore functions & sample store and also updated component snaphots.

cc @ondrejbartas

Adds mobx base for browser & server + sample store with example usage in component
Adds tests for createStore helpers, sample store & updates component snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant