55Bindings to[ React] ( https://reactjs.org/ ) for[ js_of_ocaml] ( https://ocsigen.org/js_of_ocaml/ ) , including the JSX ppx.
66
77> ** Status** : experimental phase
8- >
8+ >
99> The library is expected to break backwards compatibility on minor releases.
1010
1111Adapted from[ ReasonReact] ( https://github.com/reasonml/reason-react/ ) .
@@ -23,22 +23,22 @@ For new projects, the best way to start is by using [the jsoo-react template](ht
23231 . Install the` jsoo-react ` package:
2424
2525``` bash
26- opampin add -y jsoo-react https://github.com/ml-in-barcelona/jsoo-react.git
26+ opaminstall jsoo-react
2727 ```
2828
29292. Add` jsoo-react` library and ppx to [dune](https://dune.readthedocs.io/en/stable/) file of your executable JavaScript app:
3030
31- ```
32- (executables
33- (names index)
34- (modes js)
35- (libraries jsoo-react.lib)
36- (preprocess
37- (pps jsoo-react.ppx)))
31+ ` ` ` dune
32+ (executables
33+ (names index)
34+ (modes js)
35+ (libraries jsoo-react.lib)
36+ (preprocess
37+ (pps jsoo-react.ppx)))
3838` ` `
3939
40403. Provision React.js library
41-
41+
4242` jsoo-react` uses` require` to import React and ReactDOM. This means that you will likely need to use a bundler such as Webpack or rollup.js.
4343
4444 Note that at this moment,` jsoo-react` is compatible with** React 16** , so be sure to have the appropriate constraintsin your` package.json` .