Functional JSX-Syntax for Webcomponents. (positive-intentions.com)
from xoron@programming.dev to programming@programming.dev on 17 Apr 12:53
https://programming.dev/post/28765801

I made something to try out for “funtional webcomponents” with vanillaJs. I’m working towards a UI framework for my personal projects. It’s far from finished but i thought it might be an interesting concept to share.

#programming

threaded - newest

shortrounddev@lemmy.world on 17 Apr 13:24 next collapse

That’s really cool. I always thought web components needed something more to be really useful. I work with vanilla web components at work all the time and they’re not really that fun to work with

xoron@programming.dev on 17 Apr 14:04 collapse

thanks! ikr. i had the same exp which im sure imspired this approach.

the functional approach makes it easier for readability and debugging.

sorter_plainview@lemmy.today on 17 Apr 13:47 collapse

Isn’t ‘innerHTML’ considered unsafe? Can someone with subject knowledge please explain.

Solemarc@lemmy.world on 19 Apr 04:07 collapse

MDN says you’re right because innerHTML is un-escaped and you’re probably trying to use textContent. Didn’t know about this one, thanks.