News for hackers. Stuff that matters.
Re:HTML Web Components by flanbiscuit on Monday November 13, 2023 @02:04PM (#38253850)
React has `props.children`, Web Components have `this.innerHTML`. But also, anything inside the custom tag you can query using regular DOM querying. Here's an example I just created: https://jsfiddle.net/qc35an1s/2/

I actually have zero Web Component experience so I'm not sure if I'm following best practices there, but I was able to get that working pretty quick

There are no comments on this comment yet.