You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,16 @@
12
12
13
13
### Installation
14
14
15
+
#### React-JSX transformation V4
16
+
17
+
The ReScript compiler V10.1+ is required.
18
+
15
19
```
16
20
npm install @rescript/react --save
17
21
```
18
22
19
23
In your `bsconfig.json`:
20
24
21
-
- v0.11.0+ for React-JSX transformation V4
22
-
23
25
```
24
26
{
25
27
"jsx": { "version": 4, "mode": "classic" },
@@ -29,7 +31,13 @@ In your `bsconfig.json`:
29
31
30
32
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"`.
0 commit comments