Instead:
- ✅ use lowercase to name your variables (e.g. `match`) and use uppercase for naming your components - e.g. `Accordion`
- ✅ use camelCase when a name is composed of multiple words - e.g. `isLoading`, `MemoryGame`
Instead:
- ✅ use lowercase to name your variables (e.g. `match`) and use uppercase for naming your components - e.g. `Accordion`
- ✅ use camelCase when a name is composed of multiple words - e.g. `isLoading`, `MemoryGame`
Checkout the article for the how to use the URLSearchParams API for this!
https://reactpractice.dev/articles/how-to-pass-query-params-to-a-get-request-with-fetch/
Checkout the article for the how to use the URLSearchParams API for this!
https://reactpractice.dev/articles/how-to-pass-query-params-to-a-get-request-with-fetch/
Do you use it in your projects?
Do you use it in your projects?
It doesn't! Instead, `fetch` returns the response `ok` property as `false`, and you need to check for that.
It doesn't! Instead, `fetch` returns the response `ok` property as `false`, and you need to check for that.
When using an arrow function, you can add `<T>` at the beginning of the function:
When using an arrow function, you can add `<T>` at the beginning of the function:
What are some custom hooks you built in your projects?
What are some custom hooks you built in your projects?