Route Dispatcher

Paths map to Page classes

Wildcard paths are defined by a trailing /*

const routes: Routes = {
    '/': () => {
        console.log('This is the homepage.');
    },
    '/about': () => {
        console.log('This is the about page.');
    },
    '/contact/*': () => {
        console.log('This is the contact page.');
    },
};

Last updated