3 ms·
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 e
by flanbiscuit 3y ago
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/ 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