create-react-app <app_name>
cd <app_name>
npm run eject
npm i -s mobx mobx-react babel-plugin-transform-decorators-legacy
touch .babelrc
Then put the following in your .babelrc
:
{
"presets": ["react"],
"plugins": ["transform-decorators-legacy",
"transform-class-properties"]
}
Now you can use @observable & Co. Have fun!