File tree Expand file tree Collapse file tree 4 files changed +3536
-5
lines changed Expand file tree Collapse file tree 4 files changed +3536
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Rewrite the ` RescriptReactErrorBoundary ` component implementation with ` @react.component ` , so it can be compatible with the changes of JSX PPX.
6
6
7
+ ** Breaking:**
8
+
9
+ - ** IMPORTANT** Rewrite the ` React ` module for compatibility with the JSX PPX V4.
10
+
11
+ - Remove the deprecation attribute from apis of the new jsx transform which was introduced in React v17.
12
+
13
+ - The requirements are changed.
14
+ - ReScript compiler V10.1+
15
+ - ReactJS v18.2.0+
16
+
7
17
## v0.10.3
8
18
9
19
- Temporarily remove peerDependency for bs-platform, so we can gracefully do the transition to our new ` rescript ` package
Original file line number Diff line number Diff line change 1
- ## rescript-react
1
+ ## rescript-react
2
2
3
3
> The Official ReScript Bindings for ReactJS
4
4
@@ -18,6 +18,19 @@ npm install @rescript/react --save
18
18
19
19
In your ` bsconfig.json ` :
20
20
21
+ - v0.11.0+ for React-JSX transformation V4
22
+
23
+ ```
24
+ {
25
+ "reason": { "react-jsx": 4, "mode": "classic" },
26
+ "bs-dependencies": ["@rescript/react"]
27
+ }
28
+ ```
29
+
30
+ 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" ` .
31
+
32
+ - v0.10.3 for React-JSX transformation V3
33
+
21
34
```
22
35
{
23
36
"reason": { "react-jsx": 3 },
@@ -31,9 +44,16 @@ In your `bsconfig.json`:
31
44
32
45
### Requirements
33
46
34
- - bs-platform v8.3+
35
- - ReactJS v16.8.1+
36
- - ** Optimized for ReScript syntax usage**
47
+ - v0.11.0+
48
+
49
+ - ReScript Compiler v10.1+
50
+ - ReactJS v18.2.0+
51
+
52
+ - v0.10.3
53
+
54
+ - bs-platform v8.3+
55
+ - ReactJS v16.8.1+
56
+ - ** Optimized for ReScript syntax usage**
37
57
38
58
### Development
39
59
Original file line number Diff line number Diff line change 32
32
"react" : " ^18.2.0" ,
33
33
"react-dom" : " ^18.2.0" ,
34
34
"reason-test-framework" : " ^0.3.2" ,
35
- "rescript" : " ^10"
35
+ "rescript" : " ^10.1.0 "
36
36
},
37
37
"peerDependencies" : {
38
38
"react" : " >=18.2.0" ,
You can’t perform that action at this time.
0 commit comments