March 2019
Intermediate to advanced
208 pages
5h 11m
English
React is designed for use with JavaScript programs; ReasonReact lets you use React from ReasonML. You get the power of React with the type safety of ReasonML.
As specified in the ReasonReact web site[43], you start a project with ReasonReact like this:
| | bsb -init react-test -theme react-hooks |
| | cd react-test |
Here’s the directory structure it creates:
| | ├── bsconfig.json |
| | ├── node_modules |
| | │ └── bs-platform |
| | ├── package.json |
| | ├── README.md |
| | ├── src |
| | │ ├── Component1.re |
| | │ ├── Component2.re |
| | │ ├── index.html |
| | │ └── Index.re |
| | └── webpack.config.js |
The main differences between this project and non-React projects are that the src directory contains some sample components and an HTML file. We’ll look at ...
Read now
Unlock full access