roteador JavaScript simples

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
};
Ugliest Unicorn