Skip to content

Commit d1988d9

Browse files
committed
lesson updates
1 parent daa5b60 commit d1988d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lessons/05-ecosystem/B-tanstack-query.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const queryClient = new QueryClient()
6868

6969
Now in the bottom right of your window you'll see a 🏝️. Click on that and we'll open the dev tools. We haven't used the dev tools yet so it'll be empty.
7070

71-
So react-query makes interacting with APIs very simple and makes it easy to read. You just read a hook and it'll either give you a `isLoading` status or the data. Once the data comes back, it'll refresh the component with the data. So let's start by writing our very simple fetch call. Create a folder called `api` inside of `src` and create getPastOrders.js and put
71+
So react-query makes interacting with APIs very simple and makes it easy to read. You just read a hook and it'll either give you a `isLoading` status or the data. Once the data comes back, it'll refresh the component with the data. So let's start by writing our very simple fetch call. Create a folder called `api` inside of `src` and create `getPastOrders.js` and add:
7272

7373
```javascript
7474
export default async function getPastOrders(page) {
@@ -80,7 +80,7 @@ export default async function getPastOrders(page) {
8080

8181
Very simple request to an API that returns data. That's it!
8282

83-
Let's now go make past.lazy.jsx.
83+
Let's now go make `past.lazy.jsx`.
8484

8585
```javascript
8686
import { useState } from "react";

0 commit comments

Comments
 (0)