Releases: rescript-lang/rescript-react
Releases Β· rescript-lang/rescript-react
0.13.0
π₯ Breaking Change
- Replace usages of
%external
by binding toglobalThis
. This is to support upcoming ReScript 12 versions. For older browsers, it may be necessary to polyfillglobalThis
.
π Bug Fix
- Remove hardcoded
require
so it works in both common js and ES module modes. (#117)
0.12.2
0.12.1
0.12.0
0.12.0-alpha.3
π₯ Breaking Change
- Deprecated use*N functions in favor of changing the signature of the main hook function.
- For example, useEffect instead of useEffectN e.g.
useEffect3(f, (a, b, c))
->useEffect(f, (a, b, c))
- The affected hooks include
useEffect
,useLayoutEffect
,useCallback
,useMemo
,useImperativeHandle
,useInsertionEffect
- With this change, it is now possible to pass any value as the second argument
'deps
. In case you pass an invalid value, you will get a warning from React at runtime. You should be using one of the following values for the dependency array:- 0 dependencies:
[]
- 1 dependency:
[a]
- more than 1 dependency:
(a, b, ...)
- 0 dependencies:
- For example, useEffect instead of useEffectN e.g.
- For calling
useEffect
,useLayoutEffect
etc. without a dependency array (meaning that the effect is executed on every render), there are now separate bindingsuseEffectOnEveryRender
,useLayoutEffectOnEveryRender
etc.
0.12.0-alpha.2
π New Feature
- Added
React.lazy_
.
π₯ Breaking Change
- Requires ReScript 11.0.0-alpha.6 or newer.
π Bug Fix
- Fixed children type for
Fragment
,StrictMode
andSuspense
.
π Polish
- Removed experimental
SuspenseList
component.
0.12.0-alpha.1
π New Feature
- Compatibility with ReScript 11 uncurried mode.
- Added
gap
prop toReactDOMStyle.make
.
π₯ Breaking Change
- Removed
React.callback
type.
π Bug Fix
- Updated
React_V3
compatibility module to define record fieldcurrent
forref
.
0.11.0
0.11.0-rc.3
- Changed
React.jsxKeyed(s)
,ReactDOM.jsxKeyed(s)
having key as optional argument. - Changed
React.fragmentProps
children field to optional. - Removed the helper functions for JSX v4 from
React.res
. - Made
React.component
conversion function zero cost.
0.11.0-rc.2
- Fixed JSX PPX V3 backward compatibility.