Skip to content

Commit

Permalink
update elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Jun 14, 2022
1 parent c70304e commit 546d778
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,23 @@ With a filename:
</DataBrowserRouter>
```

Bad code with highlighted lines:
Bad code:

```tsx bad lines=[2-5]
```tsx bad
<DataBrowserRouter initialEntries={["/events/123"]}>
<Route path="/" element={<Root />} loader={rootLoader}>
<Route
path="events/:id"
element={<Event />}
loader={eventLoader}
/>
</Route>
</DataBrowserRouter>
```

Bad code with highlighted lines and a filename:

```tsx filename=src/main.jsx bad lines=[2-5]
<DataBrowserRouter initialEntries={["/events/123"]}>
<Routes>
<Route path="/" element={<Root />} loader={rootLoader}>
Expand Down

0 comments on commit 546d778

Please sign in to comment.