Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 347 Bytes

04-router.md

File metadata and controls

13 lines (10 loc) · 347 Bytes

Tutorial - Router

Next we import Router, render it, and render our Route Components as children. All that's left is to add a path prop to each child.

import { Link, Router } from "@reach/router"

// under the `nav`
<Router>
  <Home path="/" />
  <Dashboard path="/dashboard" />
</Router>