Closed reinux closed 3 months ago
Hi @reinux you can use React.fragment [ ... ]
for this:
let view model dispatch = React.fragment [
div [ Html.text "something" ]
div [ Html.text "something else" ]
]
Ah, no wonder I couldn't find it. It's under React
. Thanks!
Sorry I'm probably missing something obvious here, but is there a way to have multiple child elements to the root where the program is injected?
For example:
This naturally causes a type error, since it's expecting a
ReactElement
as opposed to aReactElement list
.The reason I ask is that Bulma may or may not misbehave unless its elements are the direct child of
<body>
.