Skip to content

Commit 29a3bca

Browse files
CanRaubrophdawg11
andauthored
docs: add missing closing / to data-browser-router (#9213)
* docs: add missing closing / to data-browser-router * sign * docs: add missing Team import * format and update highlighted lines Co-authored-by: Matt Brophy <[email protected]>
1 parent 22fe88e commit 29a3bca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@
8181
- fz6m
8282
- TkDodo
8383
- infoxicator
84+
- CanRau

docs/routers/data-browser-router.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,21 @@ This is the recommended router for all React Router DOM applications.
99

1010
`DataBrowserRouter` enables the route data APIs like [loaders][loader], [actions][action], [fetchers][fetcher] and more for browser environments.
1111

12-
```tsx lines=[3,7,11]
12+
```tsx lines=[3,8,16]
1313
import * as React from "react";
1414
import * as ReactDOM from "react-dom";
1515
import { DataBrowserRouter } from "react-router-dom";
1616
import Root from "./routes/root";
17+
import Team from "./routes/team";
1718

1819
ReactDOM.render(
1920
<DataBrowserRouter>
2021
<Route element={<Root />} loader={Root.loader}>
21-
<Route path="team" element={<Team />} loader={Team.loader}>
22+
<Route
23+
path="team"
24+
element={<Team />}
25+
loader={Team.loader}
26+
/>
2227
</Route>
2328
</DataBrowserRouter>,
2429
root

0 commit comments

Comments
 (0)