From d10d8906e6767d631f15a0183be543ad001167f8 Mon Sep 17 00:00:00 2001 From: mfijas Date: Mon, 14 Mar 2022 16:13:33 +0100 Subject: [PATCH] Update tutorial.md (#8717) --- contributors.yml | 1 + docs/getting-started/tutorial.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contributors.yml b/contributors.yml index e1443b0b7e..7a4bd77a4b 100644 --- a/contributors.yml +++ b/contributors.yml @@ -45,3 +45,4 @@ - turansky - underager - vijaypushkin +- mfijas diff --git a/docs/getting-started/tutorial.md b/docs/getting-started/tutorial.md index 2929323f5c..047770aa7c 100644 --- a/docs/getting-started/tutorial.md +++ b/docs/getting-started/tutorial.md @@ -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, @@ -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,