On this line, the TransitionGroup component accesses the memo of its children. In the event that props.children is this:
[
<div></div>,
]
then the memo of its children will resolve to just <div></div> instead of [<div></div>], which causes a type error on the next line, as a div itself is not spreadable.
On this line, the
TransitionGroup
component accesses the memo of its children. In the event thatprops.children
is this:then the memo of its children will resolve to just
<div></div>
instead of[<div></div>]
, which causes a type error on the next line, as a div itself is not spreadable.