Documentation
Comprehensive guides and API references for routes.js routing solutions
Getting Started
1. Installation
npm install routes.js
2. Basic Setup
const { Router } = require('routes'); const routes = { '/': () => document.getElementById('app').innerHTML = '<h1>Home</h1>', '/about': () => document.getElementById('app').innerHTML = '<h1>About</h1>' }; const router = new Router(routes); router.init();
3. HTML Structure
<div id="app"></div>