mlmorg/react-hyperscript
View on GitHub ↗ ★ 712 JavaScript
Hyperscript syntax for React.js markup
14 mentions on Hacker News by 9 people: 0 stories, 14 comments · first 2014-10-25 · latest 2025-05-21
20082026
-
…syntax for react(which I've just found the existence of). https://github.com/hyperhype/hyperscript https://github.com/mlmorg/react-hyperscript which might be actually similar except for the dollar sign which adds some noise. But some of…
comment by aatd86 · 2025-05-21 · in Proposal for Standardized JSX -
…react-hyperscript[0] and friends terser, more regular and just as easy to work with as JSX. [0] https://github.com/mlmorg/react-hyperscript
comment by nickcox · 2020-04-28 · in A Critique of React Hooks -
…=> setCount(count => count + 1)}, "Increment") ) } There are additionally libs like hyperscript ( https://github.com/mlmorg/react-hyperscript ) that take the non-JSX approach further. Although honestly, I don't recommend it. JSX is really…
comment by ng12 · 2019-12-12 · in Thinking in React Hooks -
…to HTML in JS, but I feel like we can move passed that now. I highly recommend `react-hyperscript`: https://github.com/mlmorg/react-hyperscript
comment by qudat · 2018-07-05 · in Vue.js: the good, the meh, and the ugly -
…is 50 lines of code, including comments and empty lines, so it's fairly easy to learn: https://github.com/mlmorg/react-hyperscript/blob/master/inde...
comment by thomasfl · 2017-09-08 · in JSX in detail -
…than m , and there's a hyperscript helper available for react with the expected semantics[0]: https://github.com/mlmorg/react-hyperscript [0] in the sense that it supports normal hyperscript semantics and replacing the selector with a…
comment by masklinn · 2017-08-21 · in Preact : a smaller, faster React alternative -
…that it's pleasant though. "Raw" react is perfectly OK, and react + hyperscript[0] is great. [0] https://github.com/mlmorg/react-hyperscript
comment by masklinn · 2017-08-21 · in Preact : a smaller, faster React alternative -
…nothing to do with Cycle, that's just hyperscript. Works great with React if you feel the urge: https://github.com/mlmorg/react-hyperscript The syntax is slightly different though: h('ul', [ h('li', 'Foo'), h('li', 'Bar'), ]) Otherwise the…
comment by Lazare · 2016-01-20 · in Why React/Redux is inferior as a paradigm -
React with JSX is pretty bad. A library like https://github.com/mlmorg/react-hyperscript solves the verbosity with not using JSX.
comment by malandrew · 2015-10-26 · in Introducing Shadow DOM API -
…but there are a few libraries that make using plain JS less awkward: https://github.com/af/JSnoX https://github.com/mlmorg/react-hyperscript https://github.com/jussi-kalliokoski/react-no-jsx I do wish the React team made their plain JS API…
comment by funksta · 2015-06-21 · in Ask HN: ReactJS – Do you use it? Do you like it? -
…that make having a proper programming language useful. Have you given react-hyperscript a chance? https://github.com/mlmorg/react-hyperscript Having first class functions for creating DOM makes it much easier to keep your DOM state…
comment by malandrew · 2014-11-25 · in Fix CSS by writing it in JavaScript -
https://github.com/mlmorg/react-hyperscript
comment by malandrew · 2014-10-29 · in React v0.12 -
…it's comparable to HTML. The complexity of JSX simply isn't worth it. It breaks too many tools. [0] https://github.com/mlmorg/react-hyperscript
comment by malandrew · 2014-10-29 · in React v0.12 -
…(like compiled template functions but for virtual DOM) Anyways, check out the following links: https://github.com/mlmorg/react-hyperscript https://gist.github.com/sebmarkbage/d7bce729f38730399d28
comment by malandrew · 2014-10-25 · in Angular 2 Core