React Custom Hooks with Axios Async useEffect | React Tutorials for Beginners
Dave Gray
@davegrayteachescodeAbout
Web Development tutorials with full courses on HTML, CSS, JavaScript, React, Node.js and more! My goal is to help you learn how to build the web. Teaching helps me learn, too. I work full-time as a Solutions Architect / Developer and part-time as a university web dev instructor. Thank you for subscribing, supporting my channel and sharing the videos you think may help others. Keep striving for progress over perfection. And a little progress every day goes a very long way. Milestones: July 20, 2020 - 1st video Jan 1, 2021 - 1k subs April 2021 - 4k watch hours Nov 2021 - 10k subs Jan 21, 2022 - Video at 100k views Feb 16, 2022 - 100k watch hours Feb 19, 2022 - 1m views Dec 13, 2022 - 100k subs Dec 2022 - Over 1m views in 1 month April 7, 2023 - 10m views May 26, 2023 - 1m watch hours Sept 22, 2023 - Video at 1m views Dec 25, 2023 - 250k subs
Video Description
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap Build React custom hooks with Axios in this React tutorial for beginners. We'll construct our own useFetch hook that applies Axios instead of the Fetch API. We'll also get started with a simple custom hook called useWindowSize. 🚩 Subscribe ➜ https://bit.ly/3nGHmNn 🚀 This lesson is part of a Learn React tutorial series playlist: https://youtube.com/playlist?list=PL0Zuz27SZ-6PrE9srvEn8nbhOOyxnWXfp 🔗 Project Source Code: https://github.com/gitdagray/react_custom_hooks React Custom Hooks (00:00) Intro (00:05) Welcome (00:19) Quick Set Up (00:43) Rules of Hooks (01:45) React Custom Hooks are like recipes (02:41) Creating the useWindowSize custom hook (08:46) Reviewing the useWindowSize custom hook (09:25) Applying useWindowSize to the React App (15:01) Remember the useEffect clean up function (17:20) Creating the useAxiosFetch custom hook (25:34) Reviewing the useAxiosFetch custom hook (27:16) Applying useAxiosFetch to the React App (35:19) Final clean up 🔗 Rules of Hooks: https://reactjs.org/docs/hooks-rules.html 🔗 Collections of Hooks: https://nikgraf.github.io/react-hooks/ https://www.npmjs.com/package/react-use 🔗 Axios: https://www.npmjs.com/package/axios 🔗 React Router: https://reactrouter.com 🔗 JSON-Server: https://www.npmjs.com/package/json-server 🔗 ES7 React JS Snippets Extension for VS Code: https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets 🔗 React Dev Tools Extension for Chrome: https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi 🔗 Styled Components: https://styled-components.com/ 📚 References: ReactJS Official site: https://reactjs.org/ React Wikipedia: https://en.wikipedia.org/wiki/React_(JavaScript_library) React Jobs: https://www.ziprecruiter.com/candidate/search?search=react&location= ✅ Follow Me: Twitter: https://twitter.com/yesdavidgray LinkedIn: https://www.linkedin.com/in/davidagray/ Blog: https://yesdavidgray.com Reddit: https://www.reddit.com/user/DaveOnEleven Was this tutorial about React Custom Hooks helpful? If so, please share. Let me know your thoughts in the comments. #react #custom #hooks
Transform Your Space with These Plants
AI-recommended products based on this video

ORMALLA Weed Puller, 43.7in Long Handle Weed Remover, Dandelion Removal Tool, Natural Bamboo Handle and 4 Claws, Stand Up Garden Weed Root Remover, Pet Friendly (Upgrade)

DOWN HOME Cooling Comforter Queen Size, Cooling Blanket for Hot Sleepers All Season, Q-max>0.4 Double-Side Cold Fabric, Bamboo Breathable Lightweight Summer Duvet Soft Quilt, Blue Strips, 90"x90" OEKO-TEX STANDARD 100

DOWN HOME Cooling Comforter King Size, Cooling Blanket for Hot Sleepers All Season, Q-max>0.4 Double-Side Cold Fabric, Bamboo Breathable Lightweight Summer Duvet Soft Quilt, Blue Strips, 90"x108" OEKO-TEX STANDARD 100

PAKCHOICE 2 Pack Continuous Spray Bottle Mister - 10.1 oz/300 ml, Refillable Fine Mist Spray Bottle for Hair Styling, Plants, Cleaning, Salons and Skin Care (White and Black)

Juexica Large Still Air Box, Mushroom Grow Kit 35.5 x 23.5 x 23.5 Inches Portable Still Air Box Tent Mycology for Mushroom Plant Growing Supplies, Mushroom Horticulture, Home Scientist(Classic Style)

Indoor Air Purification Dust Removal Magic Box, Dust Control Odor Absorbing Magic Box, Plant Extract Formula, Multi-Purpose Room Deodorizer for Home, Bedroom, Closet, Office

Indoor Air Purification Dust Removal Magic Box, Dust Control Odor Absorbing Magic Box, Plant Extract Formula, Multi-Purpose Room Deodorizer for Home, Bedroom, Closet, Office




















