Describe the bug
Currently we have FloatProps.children = ReactElement[].
This means Float cannot have a single child, which is actually perfectly acceptable.
Is there any reason to restrict the children to be a ReactElement ? Can't they just be ReactNode ?
So I suggest to update the type to ReactElement | ReactElement[] or even ReactNode | ReactNode[] if it's possible.
Use Version Use version when bugs appear:
Describe the bug Currently we have
FloatProps.children = ReactElement[]
. This meansFloat
cannot have a single child, which is actually perfectly acceptable.Is there any reason to restrict the children to be a
ReactElement
? Can't they just beReactNode
?So I suggest to update the type to
ReactElement | ReactElement[]
or evenReactNode | ReactNode[]
if it's possible.