#82: Fetch API Data with React Router Loaders🔥 No useEffect Needed

preview_player
Показать описание
In this video, we explore a modern approach to fetching API data in React using the loader property and the useLoaderData hook in React Router. You'll learn how to replace the traditional useEffect method with a cleaner, more efficient solution. We'll walk through the entire process, from creating the fetch function to rendering the data in a stylish card layout. Perfect for those looking to streamline their React development with practical, real-world examples.

------------------------------------------------------------------------
🚀 Boost Your Skills with these Pre-Requisite Videos:

------------------------------------------------------------------------

------------------------------------------------------------------------
✌️ Join Us!

------------------------------------------------------------------------

⌛TIMELINE⏳
0:00 - Introduction to Loader in React Router
0:25 - Old Way of Fetching API Data
1:08 - Step 1: Function to Fetch API Data
4:25 - Step 2: Pass Function as the Loader Property in Route
5:20 - Step 3: Fetch API Data with useLoaderData()
8:45 - Step 4: Create the Card UI Layout
12:55 - Adding Card CSS Styling
13:20 - Access Source Code for Free
14:45 - Quick Explanation on Implementation
16:10 - Old vs New Way of Fetching API Data
17:15 - Next Video Update
Рекомендации по теме
Комментарии
Автор



🚀 Boost Your Skills with these Pre-Requisite Videos:

ThapaTechnical
Автор

Header udhko maro guli 😂🤣 sir you are perfect 😍

alimnh
Автор

Use axios instead fetch, context api for authentication with cookies in front end

buddytech
Автор

sir sath m bta b dia kry k ye react 19 m aya h 18 ka nai h ta k idea hu k react m kia kia mew aya h

raza
Автор

Sir Nextjs course start karen Reactjs k bad please.

HamzaKhanLodhi-tz
Автор

Sabse best kaun sa hoga ise karne ke liye ye vala ki jo shuru me useState se, ya useEfect se

Love_line_
Автор

Nested routing pr detail video bna dain plz

quickfactuniverse
Автор

Sir next series is #NextJS #ThapaTechnical

InamKhan-bh
Автор

bhai ppt ke notes kaha se milega option hi nhi aarha..website pe sir ke?? bata do

immediateff
Автор

what if i have to fetch multiple request in same component

samraavana
Автор

Sir ppt ke notes kaha se milenge please bata dejiye...

immediateff
Автор

Fetch API using React Router VS React Query isme se konsa way shi hoga?

nitin
Автор

Sir please API link provide kar dena agar ho sake to

happyhappy-xdrx
welcome to shbcf.ru