https://github.com/matheus1lva/todo-reason-react
https://github.com/matheus1lva/todo-reason-react
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/matheus1lva/todo-reason-react
- Owner: matheus1lva
- Created: 2018-07-15T17:06:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T13:23:47.000Z (almost 7 years ago)
- Last Synced: 2025-02-17T04:28:18.437Z (4 months ago)
- Language: OCaml
- Size: 265 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# my-react-app
## Run Project
```sh
npm install
npm start
# in another tab
npm run webpack
```After you see the webpack compilation succeed (the `npm run webpack` step), open up `src/index.html` (**no server needed!**). Then modify whichever `.re` file in `src` and refresh the page to see the changes.
**For more elaborate ReasonReact examples**, please see https://github.com/reasonml-community/reason-react-example
## Build for Production
```sh
npm run build
npm run webpack:production
```This will replace the development artifact `build/Index.js` for an optimized version.
**To enable dead code elimination**, change `bsconfig.json`'s `package-specs` `module` from `"commonjs"` to `"es6"`. Then re-run the above 2 commands. This will allow Webpack to remove unused code.