UNPKG

bablojs-test

Version:

A lightweight, fast, and scalable Single Page Application framework built with vanilla JavaScript. BABLOJS provides React-like features including Virtual DOM, hooks, routing, and component-based architecture without any build step or external dependencies

18 lines (12 loc) 432 B
import { documentEvents } from "../../_modules/document.events.js"; import { babloApp } from "../../_modules/BabloApp.js"; import Config from "../config/config.js"; import { router } from "../../_modules/router.js"; import routes from "../routes/routes.js"; const app = babloApp; app.init(Config); app.routes = routes.all(); router.init(); documentEvents.onDomContentLoaded(async () => { router.route(); });