nova-frontend
Version:
Nova is an alternative to all those gigantic front-end frameworks, that often do more than is necessary when it comes to building simple UIs. Pure Vanilla Javascript is performance-wise the best way to build your front-end in a SPA, but it can be hard to
18 lines (13 loc) • 360 B
JavaScript
import { Generator, Element, root } from "../..";
const generator = new Generator();
// const aNewParent = new Element('article', root, {}, true);
const header = generator.createTree(`
div id: 'hello'
h1 innerText: 'Welcome!'
div
h2 innerText: 'To my page...'
div
div
end`)
header.render();
// header.changeParent(aNewParent);