import * as React from 'react'; import { Routes, Route, Outlet, Link } from 'react-router-dom'; export default function App() { return (

Basic Example

This example demonstrates some of the core features of React Router including nested <Route> s, <Outlet>s, <Link>s, and using a "*" route (aka "splat route") to render a "not found" page when someone visits an unrecognized URL.

{/* Routes nest inside one another. Nested route paths build upon parent route paths, and nested route elements render inside parent route elements. See the note about below. */} }> } /> } /> } /> {/* Using path="*"" means "match anything", so this route acts like a catch-all for URLs that we don't have explicit routes for. */} } />
); } function Layout() { return (
{/* A "layout route" is a good place to put markup you want to share across all the pages on your site, like navigation. */}
{/* An renders whatever child route is currently active, so you can think about this as a placeholder for the child routes we defined above. */}
); } function Home() { return (

Home

); } function About() { return (

About

); } function Dashboard() { return (

Dashboard

); } function NoMatch() { return (

Nothing to see here!

Go to the home page

); }