Skip to content

Releases: rescript-lang/rescript-react

0.11.0-rc.1

19 Oct 08:54
Compare
Choose a tag to compare
0.11.0-rc.1 Pre-release
Pre-release
  • 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 for JsxDOM.domProps (defined in the compiler repo)
  • Deprecated types ReactDOM.props, ReactDOM.Props.props, ReactDOM.Props.domProps.
  • Deprecated ReactDOM.stringToComponent.

0.11.0-alpha.1

19 Oct 08:54
d5d9168
Compare
Choose a tag to compare
0.11.0-alpha.1 Pre-release
Pre-release
  • 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 and react-dom/test-utils imports.
  • Fixed createRoot bindings.
  • Added Keyboard.code binding.
  • Renamed Changes.md to CHANGELOG.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+