API REFERENCE
Router Component
RouterComponent is a class provided by Rasengan.js used to create Routers in your application.
Usage
TypeScript
JavaScript
import { RouterComponent, defineRouter } from "rasengan"; class AppRouter extends RouterComponent {}; export default defineRouter({ imports: [], // Import others routers layout: null, // Set a layout pages: [] // Import pages })(AppRouter)
Properties
Here is the list of all the properties of RouterComponent class.
Rather than setting these values manually, the defineRouter does it for us and create a new instance of RouterComponent class and return it.
Page Component
ScrollRestoration
