Show HN: Fntags – JavaScript Instead of HTML
narcolepticsnowman.github.io
narcolepticsnowman.github.io
The library is under 3kb when minified and gzipped, and around 9kb when minified alone.
The api was largely inspired by functional components and state hooks in react.
The dom is built directly by the tag functions, the tag functions are effectively equivalent to html tags. There's no virtual dom or other representations, and the dom is updated directly on state changes.
fntags provides the ability to bind any element to any state you have a handle to.
If you're looking for something light weight for your next project, try it out!
Thanks for the input and advice :)
Docs look to be work in progress, but I like the simple API. No fluff, no fuss. Just update on state and stop with the JSX hackery. Yes, please. I'm game.