Turns
<section class="a-class">
<h1>Some heading</h1>
<p>A paragraph.</p>
</section>
into
module PureScript where
import React.Basic.DOM as R
node0 = R.section
{ className: "a-class"
, children:
[ R.h1 { children: [ R.text "Some heading" ] }
, R.p { children: [ R.text "A paragraph." ] }
]
}
I would find various moderate to large HTML snippets online (e.g. Tailwind components) and curse at how tedious they are to rewrite in PureScript. No more.
- PureScript + React (via
React.Basic.DOM
)
Halogen
or other flavors- Proper
data
andaria
attributes handling
You're very welcome.