Well, actually this isn't bad at all for creating a component with some local state. https://squint-cljs.github.io/squint/?src=gzip%3AH4sIAAAAAAAAE2VSsW7bMBDd9RVXeaEGSZ05FQgKZGjQIdkEDzR5juhQJM07NhUM%2F3shiW5tlBOP9967h3sUnmCaWxVjBSBkwnO2CSsAGOqROZLse6Spo7FPqN7VZGuQiqAU%2BxVJ52w9dzokBJnwiAkGg0ftFNF%2B3zRVJW4lvMzfHU7oeZmHvxm9IThR%2F%2Fz28qN0mqV1tOgMtC5o5VpixQhCcZjgInXInjHB1%2BsiDSB08MQpaw4JBh4trbZAUI6Ymu2ujGk%2FFevxUVPKhN5ggp3oym0RaDbln4cTai4jPGpG86ScOyj98TDokbp6Ki%2F3qLKz%2Fg68NgAGaewvGOQhMwcPFxl8q53VH7AT9Knil0fTOZrV%2B20R1uvmWqTKqZ9W%2BoqAGsRf7Ld7pWZ%2FYw3S%2BpgZLjI6pXEMbrFY8xwRKEzIo%2FXv9XVJc4mzM3i0HkFn4jCV3AjkNLe4Ff%2BCLvF7uK1kX%2F2%2FDHGi3gSdF0J3zpjmV3S4JlrvVIx1A8Od%2BvapNm7zB8tsjFnEAgAA
Neato! For the rusty old folks like me, https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements.
I haven't really used them in any project so far
Me neither! I vaguely remember hearing about them, but this is the first time I've seen them in use, so thanks for the education!
this is great and exactly what I was hoping for! I have been doing squint+lit for web components but this will make things much more pleasant.
coool!
I wonder how hard it would be to make something (a macro?) that looks like Replicant/Reagent and outputs a web component. 🤔
There is a Clojure library around web components, let’s see what it does. I forgot the name though
Don’t know enough about web components to judge whether it has a nice API