lighterjs
v1.1.0
Published
A light weight and class based vanilla JS UI framework, with Component, Router, and State handling.
Downloads
14
Maintainers
Readme
Lighter JS
A light weight and class based vanilla JS UI framework, with Component, Router, and State handling.
Install
yarn add lighterjs -d
Component example
...
<body>
<div id="root"></div>
</body>
...
import { Component } from 'lighterjs';
const appRoot = new Component({ attachId: 'root', text: 'Hello world!" });
appRoot.draw();
// Renders the text "Hello world!" on the page.