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-app
andreason-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
toolbox
toscripts
inpackage.json
(as explained here):"toolbox": "react-toolbox-themr"
-
Change
name
inbsconfig.json
, and add@astrada/reason-react-toolbox
tobs-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