Skip to content

Commit d6650e2

Browse files
authored
fix typos in tutorial.md (#8244)
1 parent c68df0c commit d6650e2

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
@@ -376,7 +376,7 @@ The `"*"` has special meaning here. It will match only when no other routes do.
376376
377377
## Reading URL Params
378378
379-
Alright, back to the individual invoice URLs. Let's add a route for a specific invoice. We just visted some URLs like `"/invoices/1998"` and `"/invoices/2005"`, lets make a new component at `src/routes/invoice.js` to render at those URLs:
379+
Alright, back to the individual invoice URLs. Let's add a route for a specific invoice. We just visited some URLs like `"/invoices/1998"` and `"/invoices/2005"`, lets make a new component at `src/routes/invoice.js` to render at those URLs:
380380

381381
```js filename=src/routes/invoice.js
382382
export default function Invoice() {
@@ -673,7 +673,7 @@ export default function Invoices() {
673673
Check this out, as the user types:
674674
675675
- `setSearchParams()` is putting the `?filter=...` search params in the URL and rerendering the router.
676-
- `useSearchParams` is now returing a [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) with `"filter"` as one of it's values.
676+
- `useSearchParams` is now returning a [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) with `"filter"` as one of its values.
677677
- We set the value of the input to whatever is in the filter search param (it's just like `useState` but in the URLSearchParams instead!)
678678
- We filter our list of invoices based on the filter search param.
679679

0 commit comments

Comments
 (0)