1.2.11 • Published 1 month ago
naxtjs v1.2.11
Contents
What is Naxtjs?
Naxt is a library framework for server side rendering.
Naxt is fast, and performant and is just 5KB.
Unlike htmx and qwirk, naxt only add 900 bytes of javascript to hydrate the dom and handle reactivity.
This makes naxt very efficient.
Naxt follows the VJS specification
Please naxt work exactly like htmx but this docs is not complete to demostrate it yet.
If you want quick info check out our telegram group.
Installation
npm
npm i naxtjs
Examples
Many aspects of Naxt are not reflected in the following example. More functionality will be entailed in future docs.
A basic component in Naxtjs:
import { div, h1, compile } from "naxtjs";
function Hello(name) {
return h1("Hello " + name, {
className: "title",
style: {
color: "grey",
},
});
}
const html = await compile("index.html", div(Hello("peter"), Hello("joe"))); // html string
app.get("/", (req, res) => {
res.send(html);
});
Getting Help and Contributing
To get further insights and help on Naxtjs, join Telegram Community.