default
hyperscript
default | hyperscript | |
---|---|---|
1 | 1 | |
77 | 2,144 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | over 3 years ago | |
JavaScript | HTML | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
default
-
Getting started in Preact (by rebuilding a React app)
The default flag here refers to the default template for the Preact CLI, available on GitHub here. I ended up having some minor issues with this set up later, but it was a good place to start because it gave me some code right out of the box that I could tinker with instead of building from scratch.
hyperscript
-
Getting started in Preact (by rebuilding a React app)
As far as I can tell, Preact uses a custom pragma (a “directive” that tells a compiler how to handle the input), named h by the creator of Preact because the original idea for a JSX-like builder function was called hyperscript, to do pretty much the same thing React’s React.createElement() is doing. Because this function isn’t namespaced to Preact though, it has to be imported separately.
What are some alternatives?
gitalk - Gitalk is a modern comment component based on Github Issue and Preact.
htmx - </> htmx - high power tools for HTML
nwb - A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
vhtml - Render JSX/Hyperscript to HTML strings, without VDOM 🌈
codesandbox-client - An online IDE for rapid web development
uinix-ui - A minimal framework-agnostic and configurable UI system to build UI systems. Your system your rules 🤘.
Preact - ⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
hyperscript - Create HyperText with JavaScript.
kounter - A small PWA to count many things in different lists
razzle - ✨ Create server-rendered universal JavaScript applications with no configuration