12 Matching Annotations
- Oct 2020
-
-
mixing the turing complete of javascript with the markup of HTML eliminates the readability of JSX so that it is actually harder to parse than a solution like hyperscript
-
hyperscript is much simpler to refactor and DRY up your code than with JSX, because, being vanilla javascript, its easier to work with variable assignment, loops and conditionals.
-
I have a few colleagues that converted to hyperscript, and while they were adverse at first, they were satisfied with having switched once they had become comfortable with the way it looks/reads.
-
hyperscript is a perfectly good alternative and uses the same interface as matt esch's virtual-dom
Tags
- missing out on the benefits of something
- virtual-dom (library)
- making it easy for later refactoring
- JSX
- it's just _
- react-hyperscript
- good point
- hybrid/mixture
- javascript
- same/compatible API
- bad combination/mixture/hybrid/frankenstein
- reuse existing language constructs
- template language vs. reusing existing language constructs
- changed their mind/opinion
- comfortable
- comparison with:
- hyperscript
- JavaScript
- template language: bad: by not reusing existing language constructs; forced to reinvent equivalents which are inferior and unfamiliar
- overcoming preconceived opinions
- readability
- Turing complete
- comfortable because familiar
Annotators
URL
-
-
github.com github.com
-
JSX remains dominant syntax for React. Still, pretty cool. And inspiration for svelte-hyperscript probably?
-
-
Hyperscript syntax for React.js markup
-
-
github.com github.com
-
Create HyperText with JavaScript
I assume that's where the name "HyperScript" came from? A portmanteau?
-
hyperscript
-
-
github.com github.com
-
svelte-htm - Hyperscript Tagged Markup for svelte; a jsx-like syntax using Tagged Templates
-
-
github.com github.com
-
Solid supports templating in 3 forms JSX, Tagged Template Literals, and Solid's HyperScript variant.
-