Releases: rescript-lang/rescript-react
Releases · rescript-lang/rescript-react
0.11.0-rc.1
- Added React 18 bindings.
- Added binding for
React.isValidElement
. - Added backgroundFilter prop in
ReactDOMStyle
. - Relaxed React version requirement to v18.0.0+.
ReactDOM.domProps
is now an alias forJsxDOM.domProps
(defined in the compiler repo)- Deprecated types
ReactDOM.props
,ReactDOM.Props.props
,ReactDOM.Props.domProps
. - Deprecated
ReactDOM.stringToComponent
.
0.11.0-alpha.1
RescriptReactErrorBoundary
component now implemented using@react.component
, so it is compatible with JSX V4.ReactV3
module added for backward compatibility to JSX V3. See the V3 compatibility mode- Fixed
react-dom/server
andreact-dom/test-utils
imports. - Fixed
createRoot
bindings. - Added
Keyboard.code
binding. - Renamed
Changes.md
toCHANGELOG.md
to align with the rescript-compiler repo.
Breaking:
-
IMPORTANT The
React
module has been modified in a breaking way to support the new JSX PPX V4. -
Removed the deprecation attribute from apis of the new jsx transform (introduced in React v17).
-
New version requirements:
- ReScript compiler V10.1+
- ReactJS v18.2.0+