This repository contains ReasonML porting of react-toolbox-example.
-
Install dependencies:
npm install --global bs-platform yarn install -
Generate theme files:
yarn toolbox -
Start the demo:
yarn start
-
Setup a new app using
create-react-appandreason-scripts:npm install -g bs-platform yarn create react-app <app-name> -- --scripts-version reason-scripts cd <app-name> -
Add dependencies:
yarn add react-toolbox yarn add --dev @astrada/reason-react-toolbox react-toolbox-themr -
Add
toolboxtoscriptsinpackage.json(as explained here):"toolbox": "react-toolbox-themr" -
Change
nameinbsconfig.json, and add@astrada/reason-react-toolboxtobs-dependencies -
Add fonts to
public/index.html:<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
-
Wrap your component with
ReactToolbox.ThemeProvider(see app.re) -
Generate theme files:
yarn toolbox -
Start the app:
yarn start