question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extract Hyperx from core

See original GitHub issue

Depending 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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jorgebucarancommented, Feb 12, 2017

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:

  • using template functions (HyperApp is neutral, use what you want)
  • using the hyperx module (what if someone writes a new html parser template function better than hyperx, should we switch? use both?)

I believe removing the hyperx dependency is a logical move.

Now let’s see the biggest positive from this move:

  • You can start using Hyperapp in production right now, because we finally have a build setup that works and no longer need to wait for my PR to be merged (assuming it will be ha).
0reactions
jorgebucarancommented, Feb 13, 2017

Closing as this landed in ~@0.2.1.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found