Skip to content

Commit

Permalink
docs(getting-started): fix component links (#9063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Goldin committed Jul 15, 2022
1 parent 0c63fcd commit b334786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions contributors.yml
Expand Up @@ -73,3 +73,5 @@
- vikingviolinist
- xcsnowcity
- yuleicul
- goldins

4 changes: 2 additions & 2 deletions docs/getting-started/overview.md
Expand Up @@ -182,7 +182,7 @@ When the URL is `"/invoices/123"`, the component tree will be:
</App>
```

Notice the inner component that changed with the URL (`<SentInvoices>` and `<Invoice>`). The parent route (`<Invoices>`) is responsible for making sure the matching child route is rendered with [`<Outlet>`](../api.md#outlet). Here's the full example:
Notice the inner component that changed with the URL (`<SentInvoices>` and `<Invoice>`). The parent route (`<Invoices>`) is responsible for making sure the matching child route is rendered with [`<Outlet>`](../components/outlet.md). Here's the full example:

```tsx [18]
import { Routes, Route, Outlet } from "react-router-dom";
Expand Down Expand Up @@ -400,7 +400,7 @@ function App() {

## Multiple Sets of Routes

Although you should only ever have a single `<Router>` in an app, you may have as many [`<Routes>`](../api.md#routes) as you need, wherever you need them. Each `<Routes>` element operates independently of the others and picks a child route to render.
Although you should only ever have a single `<Router>` in an app, you may have as many [`<Routes>`](../components/routes.md) as you need, wherever you need them. Each `<Routes>` element operates independently of the others and picks a child route to render.

```tsx
function App() {
Expand Down

0 comments on commit b334786

Please sign in to comment.