3 ms·
I've created this web ui framework where you write templates in javascript instead of html or any other templating language. It's written in es6, so it can be u
by narco_snow 7y ago
I've created this web ui framework where you write templates in javascript instead of html or any other templating language.
It's written in es6, so it can be used directly in the browser.
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!