https://github.com/tejasbubane/reason-todo
Basic Todo App in ReasonML
https://github.com/tejasbubane/reason-todo
reason-react reasonml
Last synced: 10 months ago
JSON representation
Basic Todo App in ReasonML
- Host: GitHub
- URL: https://github.com/tejasbubane/reason-todo
- Owner: tejasbubane
- Created: 2018-07-13T18:29:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T18:30:13.000Z (almost 8 years ago)
- Last Synced: 2025-03-25T09:51:26.473Z (about 1 year ago)
- Topics: reason-react, reasonml
- Language: OCaml
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-reason
## 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.