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/
Start your React projects with Vite instead!
https://reactpractice.dev/articles/how-setup-a-react-project-with-vite-typescript-and-tailwind/
Start your React projects with Vite instead!
https://reactpractice.dev/articles/how-setup-a-react-project-with-vite-typescript-and-tailwind/
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?
https://reactpractice.dev/exercise/build-a-custom-usefetch-hook/?utm_source=bluesky&utm_medium=social&utm_campaign=use-fetch-hook
https://reactpractice.dev/exercise/build-a-custom-usefetch-hook/?utm_source=bluesky&utm_medium=social&utm_campaign=use-fetch-hook
It's a great tool for live API documentation. Not all APIs support it, but those that do are great to work with!
Learn how to explore an API using it in the latest article:
https://reactpractice.dev/articles/using-swagger-to-explore-an-api/
It's a great tool for live API documentation. Not all APIs support it, but those that do are great to work with!
Learn how to explore an API using it in the latest article:
https://reactpractice.dev/articles/using-swagger-to-explore-an-api/
At @diversifytech.com, we don't want to send candidates to discriminatory companies.
Here's how we vet them (and how you can too)!
https://reactpractice.dev/articles/how-setup-a-react-project-with-vite-typescript-and-tailwind/
https://reactpractice.dev/articles/how-setup-a-react-project-with-vite-typescript-and-tailwind/
• Timers: clearInterval
• Events: removeEventListener
• Subscriptions: unsubscribe
• Connections: disconnect
• API: cancel request
🚀 Why useEffect Cleanup?
No cleanup = Memory leaks
Missing cleanup = Bugs
Bad cleanup = Weird behavior
#ReactJS #javascript
• Timers: clearInterval
• Events: removeEventListener
• Subscriptions: unsubscribe
• Connections: disconnect
• API: cancel request
🚀 Why useEffect Cleanup?
No cleanup = Memory leaks
Missing cleanup = Bugs
Bad cleanup = Weird behavior
#ReactJS #javascript
https://reactpractice.dev/articles/leetcode-style-react-problems
https://reactpractice.dev/articles/leetcode-style-react-problems