3 ms·
Suspiciously absent, but right up this alley is hyperscript: h('div', {id: 'foo', onclick: f}, 'Hello') The benefits of hyperscript over `div()` is that i
by lhorie 6y ago
Suspiciously absent, but right up this alley is hyperscript:
h('div', {id: 'foo', onclick: f}, 'Hello')
The benefits of hyperscript over `div()` is that in JS, variable names must be imported by name (so `import {div, ul, li, ...}` gets annoying fast). Also, React is super popular, and hyperscript interoperates nicely with JSX.
- pickle-ts 6y agoFYI in typescript with VS you just hit TAB to auto-complete an import.