reason-react
Advanced tools
Changelog
0.8.0 (04/2020)
v0.8.0 is a huge release that includes several breaking changes, maintenance fixes and documentation updates :tada:
Thanks to all of our contributors for making this happen!
bs-platform
to peerDependencies
react
, react-dom
to peerDependencies
@sync in #361bs-platform
has a minimum version of 7.1.1 (^7.1.1) @imbsky in #503onInvalid
prop @bsansouci in #364React.float
and React.int
@utkarshkukreti in #420crossOrigin
case and type @schmavery in #469mapWithIndex
and forEachWithIndex
to children
@cem2ran in #515cloneElement
type definition @bloodyowl in #464maxDuration
prop from suspense @anmonteiro in #399React.SuspenseList
@ri7nz in #533console.error
instead of throwing @bloodywl in #520unsafeAddStyle
and combine
@sgny in #437ReactDOMRE.Style.combine
and removes Obj.magic
@bloodyowl in #519autoCapitalize
@wegry in #304useTransition
hook @kiangtengl in #512min
attribute to string
@stuartkeith in #281displayName
@czystyl in #433useEffect
docs @sgny in #461useEffect
docs @pckilgore in #336children
with Hooks API @anmonteiro in #396Changelog
0.7.1
Small release with a couple additional bindings to existing React APIs.
New APIs:
React.cloneElement
React.Children
useEffect
, useLayoutEffect
, useMemo
, useCallback
, useImperativeHandle
now are all consistently implemented up to useX7
to improve usability.ReasonReactRouter.urlNotEqual
Also removes .cm*
generated files from the release to clean up the build process.
Changelog
0.7.0
Support for React Hooks API. Allows for writing function components with state and complex interactions.
You can now write components like
[@react.component]
let make = (~className, ~text) => <div className> {text} </div>;
which will compile to a 0-cost React component that looks like
let make = ({className, text}) => <div className> {text} </div>;
These components use a new PPX shipped with BuckleScript 5.0.0+. Please read the documentation for more.
There is no breaking change here, but if you're interested in migrating some components the upgrade script is provided. It will wrap existing ReasonReact components as if they are Hooks components.
Changelog
0.6.0
Mini release before a surprise release next time (shhhhh) =).
crossorigin
is now correctly named crossOrigin
. This is a tiny breaking change, thus the version bump (#290).ReasonReact.Router.replace
to replace state.