Skip to content

survivejs-demos/mobx-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes/Kanban app - MobX port

This repository contains MobX ports of SurviveJS - Webpack and React book examples. You can study them to see how to implement the same application in a different kind of architecture. See also the interview with Michel Weststrate.

MobX provides a way to make data structures reactive and makes it easy to consume them. It can be used with or without Flux. In this case we'll be relying directly on MobX for our data needs and skip Flux altogether. The most interesting thing to notice is how much it cuts out code.

We are triggering our MobX stores directly and more pedantic people might implement classes in between. For a simple case such as this the current approach is enough.

See Michel Weststrate's interview about mobx!

Demo

  1. cd notes_app or cd kanban_app
  2. npm i
  3. npm start
  4. Surf to localhost:8080

License

MIT.