Route Component

The default export of a route module defines the component that will render when the route matches.

  1. export default function MyRouteComponent() {
  2. return (
  3. <div>
  4. <h1>Look ma!</h1>
  5. <p>I'm still using React after like 8 years.</p>
  6. </div>
  7. );
  8. }