https://github.com/nonbili/purescript-halogen-nselect and
https://github.com/nonbili/purescript-halogen-custom-element
purescript-halogen-nselect
is not a new project, but I finally managed to put some documentation together.
https://nonbili.github.io/purescript-halogen-nselect/
The documentation itself is a demo of purescript-halogen-custom-element
. With purescript-halogen-custom-element
, I can convert Halogen components to custom elements.
For example, I can convert Example.Hello.component
to a <halogen-hello>
custom element, then I can put <halogen-hello>
anywhere inside html or markdown file. And the halogen component will be rendered at that position.
It’s fun to use Halogen and custom elements (web components) together, in both directions: use custom element inside a Halogen component, and use Halogen component as a custom element. I will write more about it in the future.