React Debounce Search Input API Call | useDebounce React Hook

Dave Gray February 10, 2023
Video Thumbnail

About

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 Learn what debounce is and how to create a React Debounce Search Input with automatic API calls in this tutorial. We'll create a useDebounce React hook with a search input, Axios and SWR. 🚀 Become a full-stack web dev with Zero To Mastery Courses: - Advanced React: https://bit.ly/AdvReactDev - The Complete Web Developer: https://bit.ly/WebDevMaster - Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr 🚩 Subscribe ➜ https://bit.ly/3nGHmNn 📬 Course Updates ➜ https://courses.davegray.codes/ ❓ Questions - Please post them to my Discord ➜ https://discord.gg/neKghyefqh ☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray 👇 Follow Me On Social Media: Github: https://github.com/gitdagray Twitter: https://twitter.com/yesdavidgray LinkedIn: https://www.linkedin.com/in/davidagray/ 🔗 Source Code: https://github.com/gitdagray/react-debounce React Debounce Search Input | useDebounce hook (00:00) Intro (00:22) Welcome (00:43) Note and Source Code (01:14) The Problem (02:34) Dependencies (03:23) Axios & the Wikipedia API (04:41) Component Review (06:57) Create the useDebounce hook (11:33) Apply the useDebounce hook (12:54) Using the app with Debounce (14:12) Add images to search results (15:18) Challenge for you 📺 Suggested Videos: 🔗 React Suspense & Error Boundaries: https://youtu.be/1_dLaSjzOMY 🔗 Skeleton Loading Components: https://youtu.be/cNQTg920Nx0 📚 Tutorial References: 🔗 API Tutorial: https://www.mediawiki.org/wiki/API:Tutorial 🔗API Query Docs: https://www.mediawiki.org/wiki/API:Query 🔗API Cross-Site Requests Docs: https://www.mediawiki.org/wiki/API:Cross-site_requests Was this React Debounce a Search Input tutorial helpful? If so, please share. Let me know your thoughts in the comments. #react #debounce #search

You May Also Like

Upgrade Your Travel Gear

AI-recommended products based on this video

Loading...
SINRAOEE 24 MP 18X High-Definition Digital 1080 FHD 3 Inch TFT LCD Screen Anti-Shake Digital Video Camera for Travel

SINRAOEE 24 MP 18X High-Definition Digital 1080 FHD 3 Inch TFT LCD Screen Anti-Shake Digital Video Camera for Travel

(0)
$58.79
FREE delivery Aug 18 - 27
Loading...
LICAEVEY 84MP Digital Camera, 6K 18X Optical Zoom Wide Angle DSLR Camera, 1500mAh Li Battery 3 Inch LCD Vlogging Camera for Travel Recording Video (Black)

LICAEVEY 84MP Digital Camera, 6K 18X Optical Zoom Wide Angle DSLR Camera, 1500mAh Li Battery 3 Inch LCD Vlogging Camera for Travel Recording Video (Black)

(0)
$124.30
FREE delivery Aug 19 - 29
Loading...
LICAEVEY 4K Digital Camera, 75MP UHD 3 Inch LCD Screen Point and Shoot Camara with Flash, 18X Digital Zoom Compact Vlog Travel Camara for Photography (Black)

LICAEVEY 4K Digital Camera, 75MP UHD 3 Inch LCD Screen Point and Shoot Camara with Flash, 18X Digital Zoom Compact Vlog Travel Camara for Photography (Black)

(0)
$70.45
FREE delivery Aug 19 - 29
Loading...
4K HD Digital Camera, 18X Zoom Selfie Vlogging Camera Autofocus with 2.8 Inch LCD Display, Portable 64MP Compact Video Camcorder Anti Shake for Travel (Black)

4K HD Digital Camera, 18X Zoom Selfie Vlogging Camera Autofocus with 2.8 Inch LCD Display, Portable 64MP Compact Video Camcorder Anti Shake for Travel (Black)

(0)
$49.26
FREE delivery Aug 19 - 29
Loading...
NEEWER a6700 L Plate Compatible with Sony Alpha 6700, Quick Switch Aluminum Extendable Side Plate & Anti Twist Baseplate Compatible with Arca Swiss QR System DJI RS 2 RSC 2 RS 3 Pro Gimbals, CA048

NEEWER a6700 L Plate Compatible with Sony Alpha 6700, Quick Switch Aluminum Extendable Side Plate & Anti Twist Baseplate Compatible with Arca Swiss QR System DJI RS 2 RSC 2 RS 3 Pro Gimbals, CA048

(24)
$25.99
FREE delivery Thu, Jun 19 on your first order
Loading...
SmallRig Baseplate for Sony Alpha 6700, Bottom Mount Plate Built-in Quick Release Plate for Arca, Supporting Quick Switch Between Tripod and Stabilizer (for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro) - 4338

SmallRig Baseplate for Sony Alpha 6700, Bottom Mount Plate Built-in Quick Release Plate for Arca, Supporting Quick Switch Between Tripod and Stabilizer (for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro) - 4338

(85)
$38.24
FREE delivery Thu, Jun 19
Loading...
NEEWER a6700 L Plate Compatible with Sony Alpha 6700, Quick Switch Aluminum Extendable Side Plate & Anti Twist Baseplate Compatible with Arca Swiss QR System DJI RS 2 RSC 2 RS 3 Pro Gimbals, CA048

NEEWER a6700 L Plate Compatible with Sony Alpha 6700, Quick Switch Aluminum Extendable Side Plate & Anti Twist Baseplate Compatible with Arca Swiss QR System DJI RS 2 RSC 2 RS 3 Pro Gimbals, CA048

(24)
$25.99
FREE delivery Thu, Jun 19 on your first order
Loading...
SmallRig ZV-E10 II Base Plate for Sony Alpha ZV-E10 II, Bottom Mount Plate with Quick-Release Plate for Arca, QD Socket, Hand Strap Hole, 1/4"-20 Threaded Hole - 4950

SmallRig ZV-E10 II Base Plate for Sony Alpha ZV-E10 II, Bottom Mount Plate with Quick-Release Plate for Arca, QD Socket, Hand Strap Hole, 1/4"-20 Threaded Hole - 4950

(13)
$37.99
FREE delivery Sat, Jun 21
Loading...
SmallRig Baseplate for Sony Alpha 6700, Bottom Mount Plate Built-in Quick Release Plate for Arca, Supporting Quick Switch Between Tripod and Stabilizer (for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro) - 4338

SmallRig Baseplate for Sony Alpha 6700, Bottom Mount Plate Built-in Quick Release Plate for Arca, Supporting Quick Switch Between Tripod and Stabilizer (for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro) - 4338

(85)
$38.24
FREE delivery Thu, Jun 19
Loading...
DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production
Best Seller

DJI Mic Mini (2 TX + 1 RX), Detail-Rich Audio, Wireless Lavalier Microphone for Camera/Android, 2-Person Vlog, Team Production

(59)
$99.00
FREE delivery Tue, Oct 7
500+ bought in past month
Loading...
SanDisk 4TB Extreme Portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware - External Solid State Drive - SDSSDE61-4T00-G25

SanDisk 4TB Extreme Portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware - External Solid State Drive - SDSSDE61-4T00-G25

(77,138)
$379.99
FREE delivery Tue, Jun 17
100+ bought in past month