Skip to content

Commit d0cc22e

Browse files
committed
update installation in readme
1 parent 77bf2b3 commit d0cc22e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212

1313
### Installation
1414

15+
#### React-JSX transformation V4
16+
17+
The ReScript compiler V10.1+ is required.
18+
1519
```
1620
npm install @rescript/react --save
1721
```
1822

1923
In your `bsconfig.json`:
2024

21-
- v0.11.0+ for React-JSX transformation V4
22-
2325
```
2426
{
2527
"jsx": { "version": 4, "mode": "classic" },
@@ -29,7 +31,13 @@ In your `bsconfig.json`:
2931

3032
If you want to try [the new jsx transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) which was introduced in React v17, set the `"mode": "automatic"`.
3133

32-
- v0.10.3 for React-JSX transformation V3
34+
#### React-JSX transformation V3
35+
36+
```
37+
npm install @rescript/react@0.10.3 --save
38+
```
39+
40+
In your `bsconfig.json`:
3341

3442
```
3543
{

0 commit comments

Comments
 (0)