https://github.com/timarney/mobx-rewire-test
https://github.com/timarney/mobx-rewire-test
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timarney/mobx-rewire-test
- Owner: timarney
- Created: 2017-01-13T02:35:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T10:22:22.000Z (about 8 years ago)
- Last Synced: 2025-02-15T10:27:17.183Z (over 1 year ago)
- Language: JavaScript
- Size: 278 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React App Rewired - Demo
* MobX (decorators)
* Styled Components (with babel-plugin-styled-components)
### Rewired CRA Config
```javascript
const rewireMobX = require('react-app-rewire-mobx');
const { injectBabelPlugin } = require("react-app-rewired");
/* config-overrides.js */
module.exports = function override(config, env) {
config = rewireMobX(config,env);
config = injectBabelPlugin("babel-plugin-styled-components", config);
return config;
}
```
# Details
Learn how to rewire your app here https://github.com/timarney/react-app-rewired