This is how you import your hyperapp goodies:
import { h, app } from "hyperapp"
I was thinking, what if we did it like this instead:
import app from "hyperapp"
// or
import { app } from "hyperapp"
So, where did h go? Well, it's a prop of the app function.
const { h } = app
No, please.
app may be needed in places, where h not needed (because we import ready to use Components).
h may not be needed in places, where app app needed.
@dmitry-vakhnenko agree :+1: :100:
Named exports win for me every time. Pretty relevant article.
Most helpful comment
No, please.
appmay be needed in places, wherehnot needed (because we import ready to use Components).hmay not be needed in places, where appappneeded.