Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8505ae

Browse files
committed
Add install step instead of pin
1 parentc721bb1 commitc8505ae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Bindings 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
1111
Adapted 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
2323
1. Install the`jsoo-react` package:
2424

2525
```bash
26-
opampin add -yjsoo-react https://github.com/ml-in-barcelona/jsoo-react.git
26+
opaminstalljsoo-react
2727
```
2828

2929
2. 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

4040
3. 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`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp