mingchuno / react-mobx-boilerplate

Small project to quickly start with React, MobX, JSX, ES6, Babel in 2019

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react mobx example

Build Status Greenkeeper badge

THIS EXAMPLE IS DEPRECATED SINCE IT IS STILL USING CLASS COMPONENT!

This is an example of react x mobx which is created by CRA. Did not use typescript here since I have tried but it got too complicated to use with @inject decorators. We have a simple button and a text display the count with a global injected counterStore.

Get started

yarn install
yarn start
yarn test

Points to note

  • I have tried ts but using it with @inject decorators is too difficult.
  • need to get eslint work on CLI and vscode
  • TODOs:
    • impl a more complete example with at least some API call and UI
    • try to incop with RxJs
    • try more mobx features

About

Small project to quickly start with React, MobX, JSX, ES6, Babel in 2019


Languages

Language:JavaScript 75.6%Language:HTML 15.1%Language:CSS 9.3%