Use React.Children.toArray instead of manual conversion
saitonakamura opened this issue · 0 comments
saitonakamura commented
Line 13 in b5e22ea
React has a built-in api to convert children to array even if it's a single element. It'll also do the falsy children filtering for you.
React.Children.toArray(props.children)
I've opened the PR