Changelog
1.0.0 (25 July 2019)
Suspense
, Boundary
, Context
and Portal
components.
memo
and lazy
factories.
Added hooks(state, effects, context, ref and memo/callback hooks).
Portal re-parenting.
When a portals container changes, previous children are moved to the new container instead of unmounted and re-created.
The render
interface can now render into any container. For example it could noop render into a non-document container: render('Hello', {})
.
New dyo/server
package, supports rendering to any writable streams For example – a node response object: render('Hello', response)
, with friction-less async and error boundary support.
unmountComponentAtNode
.Redundent given render(null, target)
archives the same effect.
findDOMNode
.Undeterministic given exotic elements like Fragments don't have "single" DOM node. Refs are the better abstraction given they are also auto-fowarded.
renderToStream
and renderToString
.Better level of abstraction with a single source of entry with: render
. The dyo/server
package accepts writable streams to write to.
componentWillMount
, componentWillUpdate
and componentWillReceiveProps
.Added effects useEffect
and useLayout
to replace them all.
Removed componentDidCatch
being replaced by a single Boundary
component.
Removed createFactory
, createComment
.
Removed Component
, PureComponent
and class components in general.
Removed createPortal
and createContext
being replaced by Portal
and Context
components respectfully.