3 ms·
React is also elemental, but in a different sort of way. Your elements effectively become substitutions: // When I say <IconButton link-
by bsimpson 12y ago
React is also elemental, but in a different sort of way. Your elements effectively become substitutions:
// When I say
<IconButton
link-to = "home"
src = "home.svg
/>
// give me
<a
class = "IconButton"
href = "/"
>
<img src = "home.svg" />
</a>
It doesn't show up as custom elements in the DOM (hence you have to manually specify the class name in your substitution). It's also idempotent, so no fancy data binding. Otherwise, same idea.