GithubHelp home page GithubHelp logo

survivejs-demos / mobx-demo Goto Github PK

View Code? Open in Web Editor NEW
85.0 5.0 10.0 320 KB

MobX port of SurviveJS - Webpack and React apps

Home Page: https://survivejs.com/

License: MIT License

JavaScript 92.87% CSS 7.13%
mobx survivejs mobx-port webpack react

mobx-demo's Introduction

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.

mobx-demo's People

Contributors

bebraw avatar mweststrate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mobx-demo's Issues

elm?

Hi just wondering where you were going with the elm project - you left out the code.
Dave

ps: I'm reading your excellent book .
Seems like Mobservables might be a better choice than Alt for the example, no?

old version of mobservable

current version is 1.2.2
your demo is on 0.6.0

Changelog here:
https://github.com/mweststrate/mobservable/blob/master/CHANGELOG.md

Though, even with ugrading ncu -u, still seeing errors in Browser console:

The use of mobservable.reactiveComponent and mobservable.reactiveMixin is deprecated, please use reactiveComponent from the mobservable-react package

mobservable.observeUntilInvalid is deprecated and will be removed in 0.7 mobservable.js:353 ```

old version of mobservable

current version is 1.2.2
your demo is on 0.6.0

Changelog here:
https://github.com/mweststrate/mobservable/blob/master/CHANGELOG.md

Though, even with ugrading ncu -u, still seeing errors in Browser console:

The use of mobservable.reactiveComponent and mobservable.reactiveMixin is deprecated, please use reactiveComponent from the mobservable-react package

mobservable.observeUntilInvalid is deprecated and will be removed in 0.7 mobservable.js:353 ```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.