3 ms·
Elm defines separate functions for each element type which in js would look like view: () => div({id: "app", class: "container"}, [ div({class: "filt
by ollysb 6y ago
Elm defines separate functions for each element type which in js would look like
view: () => div({id: "app", class: "container"}, [
div({class: "filter"}, [
" Filter: ",
span({class: "filter-word"}, "ocean"),
button({}, "\u270E")
]),
I'm admittedly used to this from years using Elm but to my eye I'd far rather use this than JSX.
- jorgebucaran 6y ago100% agree, that's exactly what @hyperapp/html package attempts: - https://www.npmjs.com/package/@hyperapp/html https://www.npmjs.com/package/@hyperapp/html