Skip to content

Commit adb9fc4

Browse files
committed
udpate doc and version
1 parent 5eacba1 commit adb9fc4

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

Changes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## master
44

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.
66

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)
88

99
**Breaking:**
1010

README.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#### React-JSX transformation V4
1616

17+
- [Documentation](https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md)
18+
1719
The ReScript compiler V10.1+ is required.
1820

1921
```
@@ -31,20 +33,7 @@ In your `bsconfig.json`:
3133

3234
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"`.
3335

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)
4837

4938
**Quick Links:**
5039

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rescript/react",
3-
"version": "0.11.0",
3+
"version": "0.11.0-rc.1",
44
"description": "React bindings for ReScript",
55
"files": [
66
"README.md",
@@ -52,4 +52,4 @@
5252
"node_modules/(?!(bs-platform|reason-react|reason-react-compat|reason-react-update|bs-webapi|bs-css|bs-css-emotion|reason-test-framework)/)"
5353
]
5454
}
55-
}
55+
}

0 commit comments

Comments
 (0)