Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mobx boilerplate #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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