Changelog
8.0.3 (09 October 2017)
Changelog
8.0.2 (08 October 2017)
setState
calls from componentWillReceiveProps
lifecycle to update state synchronously like React.Changelog
8.0.0 (06 October 2017)
componentDidCatch
.stateful
functional components.context
, getChildContext.props.children
html
element.createPortal
.findDOMNode
.hydrate
.Children
.unmountComponentAtNode
render
if target container is invalid.componentDidThrow
is renamed to componentDidCatch
and unmounts the DOM if an error state is left unhandled. However errors coming from event handlers are exluded from this behaviour.
props.children
is now an opaque data-structure, which might break your application if you relied on it always being of an Array
type.
Passing an invalid object to #render
as the container to render to will throw an error. Falsey values are not considered invalid values, these will fallback to the root
Node in a DOM tree. Truethy values that are not of or do not extend/mimic the native Node
class of the platform would be considered invalid.
Hydration now exists soley as an explicit API hydrate
.
Hydration will now always try to make sure the DOM matches the virtual elements generated on the client. This may result in removing nodes or adding DOM nodes. This only bears any meaning if the server and client renders do not match in which case the reconciler will always try to make the DOM match what you render on the client.