how to build a router js code example
Example: simple javascript router
const router = () => {
// Find the component based on the current path
const path = parseLocation();
// TODO: If there's no matching route, get the "Error" component
// TODO: Render the component in the "app" placeholder
};