An open API service indexing awesome lists of open source software.

https://github.com/remithomas/reasonreact-reductive-boilerplate

A boilerplate using reason-react and reductive
https://github.com/remithomas/reasonreact-reductive-boilerplate

Last synced: 8 months ago
JSON representation

A boilerplate using reason-react and reductive

Awesome Lists containing this project

README

          

# ReasonReact-reductive-boilerplate

> Currently in `WIP`: this is an example of how to use reductive in 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.

## Todos

- [ ] Add `reductive-dev-tools`