A utility to handle client-side routing, allowing navigation between pages without the need to reload the entire page. 💖
-
Web Browser
- Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera]. -
Internet
- Because many use CDN and to make it easier to find solutions to all problems.
import { Router } from 'client-side-routing-utils';
const router = new Router();
router.addRoute('/', () => {
console.log('Home Page');
});
router.addRoute('/about', () => {
console.log('About Page');
});
router.navigate('/about');
- This package provides utilities for client-side routing in web applications. It allows you to define routes and corresponding handlers, and navigate between routes using hash-based URLs.
-
Router
: Class for managing client-side routing. -
RouteHandler
: Function type for handling route changes. -
RouteParams
: Interface for storing route parameters.
- v1.0.0 : 17 March 2024
- v1.0.1 : 18 March 2024
- v1.0.2 : 20 March 2024
- v5.0.0 : 31 March 2024
- Facebook : Oned Ionys
- Instagram : @onedionys
- Twitter : @onedionys
- LinkedIn : @onedionys
- Copyright © 2024 One Dionys
- One Dionys - Client-Side Routing Utilities is an open source project licensed under the MIT license
Love One Dionys - Client-Side Routing Utilities? Support this project by donating or sharing with others in need.
Made with ❤️ One Dionys