Closed avi892nash closed 3 weeks ago
Yeah Component
is just a type alias
type Component props = Effect (props -> JSX)
so if you have an Array JSX
that you want to return, the recommendation is to use fragment :: Array JSX -> JSX
https://pursuit.purescript.org/packages/purescript-react-basic/17.0.0/docs/React.Basic#v:fragment
The type of component function does not allow to create react component with Array JSX return.