Skip to content

Commit

Permalink
Update tutorial.md (#8717)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfijas committed Mar 14, 2022
1 parent 7dca9dc commit d10d890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -45,3 +45,4 @@
- turansky
- underager
- vijaypushkin
- mfijas
4 changes: 2 additions & 2 deletions docs/getting-started/tutorial.md
Expand Up @@ -172,7 +172,7 @@ export default function Invoices() {

Finally, let's teach React Router how to render our app at different URLs by creating our first "Route Config" inside of `main.jsx` or `index.js`.

```tsx lines=[2,4-5,13-19] filename=src/main.jsx
```tsx lines=[2,4-5,8-9,13-19] filename=src/main.jsx
import { render } from "react-dom";
import {
BrowserRouter,
Expand Down Expand Up @@ -806,7 +806,7 @@ export function deleteInvoice(number) {
Now let's add the delete button, call our new function, and navigate to the index route:

```js lines=[1-2,5-6,17-26] filename=src/routes/invoice.jsx
```js lines=[1-6,20-29] filename=src/routes/invoice.jsx
import {
useParams,
useNavigate,
Expand Down

0 comments on commit d10d890

Please sign in to comment.