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: Changes.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
## master
4
4
5
-
-Re-written the `RescriptReactErrorBoundary` component implementation using`@react.component`, to support the new JSX PPX V4.
5
+
-Rewrite the `RescriptReactErrorBoundary` component implementation with`@react.component`, so it can be compatible with the changes of JSX PPX.
6
6
7
-
-`ReactV3` module added for backward compatibility to JSX v3.
7
+
-`ReactV3` module added for backward compatibility to JSX v3. See [the V3 compatibility mode](https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md)
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"`.
33
35
34
-
#### React-JSX transformation V3
35
-
36
-
```
37
-
npm install @rescript/react@0.10.3 --save
38
-
```
39
-
40
-
In your `bsconfig.json`:
41
-
42
-
```
43
-
{
44
-
"reason": { "react-jsx": 3 },
45
-
"bs-dependencies": ["@rescript/react"]
46
-
}
47
-
```
36
+
If you want to try build your project with JSX v3, see [the V3 compatibility mode](https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md)
0 commit comments