0.21.0
please read the upgrading guide.
v0.22.0
of the runtime introduces some performance improvements to internal
runtime rendering functions.
ReactNode[]
propsReactNode
s, like
the example Slots
component below, could render the list by simply
interpolating its value in JSX:
slots
value was never actually passed as a list of
ReactNode
s. Instead, it was passed as a single ReactNode
representing an
internal component rendering the list as a recursive
cons-like structure.
If you have registered components that expect a list of ReactNode
s and rely
on this undocumented behavior, you must update your code to wrap each node in
a React.Fragment
with a corresponding key: