Releases: rescript-lang/rescript-react
Releases · rescript-lang/rescript-react
0.11.0
0.11.0-rc.3
- Changed
React.jsxKeyed(s),ReactDOM.jsxKeyed(s)having key as optional argument. - Changed
React.fragmentPropschildren field to optional. - Removed the helper functions for JSX v4 from
React.res. - Made
React.componentconversion function zero cost.
0.11.0-rc.2
- Fixed JSX PPX V3 backward compatibility.
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.domPropsis 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
RescriptReactErrorBoundarycomponent now implemented using@react.component, so it is compatible with JSX V4.ReactV3module added for backward compatibility to JSX V3. See the V3 compatibility mode- Fixed
react-dom/serverandreact-dom/test-utilsimports. - Fixed
createRootbindings. - Added
Keyboard.codebinding. - Renamed
Changes.mdtoCHANGELOG.mdto align with the rescript-compiler repo.
Breaking:
-
IMPORTANT The
Reactmodule 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+