5 ms·
What does Hyperscript have to do with web components?
by woah 10y ago
What does Hyperscript have to do with web components?
- spankalee 10y agoExactly. The complaint in the article is that Web Components don't _also_ add a nice API fro creating DOM trees. This is true, but not relevant. The ideas of a component model and tree creation DSL are orthogonal. Hyperscript (the JS library) is a nice API for creating DOM trees, that's similar to React's createElement(). You can use it with or without Web Components.