Skip to content

Commit 28826a9

Browse files
TkDodotimdorr
andauthored
docs(tutorial): add missing code highlighting (#9192)
Co-authored-by: Tim Dorr <[email protected]>
1 parent f0693f5 commit 28826a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ Add a form, add an action, React Router does the rest.
11781178

11791179
Just for kicks, throw an error in the destroy action:
11801180

1181-
```jsx filename=src/routes/destroy.jsx
1181+
```jsx filename=src/routes/destroy.jsx lines=[2]
11821182
export async function action({ params }) {
11831183
throw new Error("oh dang!");
11841184
await deleteContact(params.contactId);
@@ -1829,7 +1829,7 @@ Whenever you have an expected error case in a loader or action–like the data n
18291829

18301830
👉 **Throw a 404 response in the loader**
18311831

1832-
```jsx filename=src/routes/contact.jsx lines lines=[4]
1832+
```jsx filename=src/routes/contact.jsx lines lines=[3-8]
18331833
export async function loader({ params }) {
18341834
const contact = await getContact(params.contactId);
18351835
if (!contact) {

0 commit comments

Comments
 (0)