Extract Hyperx from core
See original GitHub issueDepending on https://github.com/substack/hyperxify/pull/8 to be merged to move forward is not reasonable. But the truth is that even if it’s not merged, hyperxify can still be used with HyperApp, it’s just a little more laborious.
const { h, app } = require("hyperapp")
const hyperx = require("hyperx")
const html = hyperx(h)
app({
model: "Hi.",
view: model => html`<h1>${model}</h1>`
})
browserify -t hyperxify index.js -g uglifyify | uglifyjs > bundle.js
HyperApp is officially neutral in the Hyperx/template functions VS JSX debate (although the README is biased in favor of JSX on the premise that it looks “cool”), so extracting Hyperx seems a natural move.
I’ll update online examples still using html
via HyperApp and write the docs.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:10 (5 by maintainers)
Top Results From Across the Web
HyperX Ngenuity Software Tutorial for Mechanical Keyboard
HyperX Ngenuity Software Tutorial for Mechanical Keyboard - Save RGB ... of people requested this one for their HyperX Alloy Origins Core ......
Read more >NGENUITY – HyperX US
HyperX NGENUITY is a powerful and intuitive software that will allow you to personalize your compatible HyperX products. Set button bindings, program and...
Read more >HyperX Alloy Origins Core review – a steal worth every penny
The Alloy Origin keyboard from HyperX is a no-nonsense mechanical gaming keyboard that just works. This budget friendly TKL mechanical ...
Read more >HyperX Alloy Origins Core Review - Switch and Click
The HyperX Alloy Origins Core is a tenkeyless mechanical keyboard with an excellent ... Also, it makes it easy to pull off the...
Read more >HyperX Alloy Origins Core TKL gaming keyboard is ... - CNET
HyperX Alloy Origins Core TKL gaming keyboard is ready to make ... and now you can get it with HyperX's Blue clicky mechanical...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
True, you will no longer
import { html }
, which was neat, but on the other hand using hyperx out of the box makes HyperApp opinionated about two things:I believe removing the hyperx dependency is a logical move.
Now let’s see the biggest positive from this move:
Closing as this landed in ~@0.2.1.