useEffect is usually the place where data fetching happens in React. Data fetching means using asynchronous functions, and using them in useEffect might not be as straightforward as you'd think. Read on to learn more about it!
The wrong way
There's one wrong way to do data fetching in useEffect. If you write the following code, your linter will scream at you!
| I mean you are using a linter right?? |
// ❌ don't do this






