Loading data in React Router using the new useLoaderData hook

Опубликовано: 21 Ноябрь 2022
на канале: Ian Lenehan
7,371
143

I am really excited about using React Router 6.4 in production apps because they have introduced some really neat features that are already available in Remix. In this video we just look at the useLoaderData pattern and how it can make constructing React components so much simpler.

My Remix tutorial:    • Remix Tutorial | Trying out the newes...  
Learn React with Zero to Mastery: https://bit.ly/il-learn-react

React Router: https://reactrouter.com/en/main/hooks...

Intro: 00:00
App setup: 00:35
Loading data with hooks: 02:16
Convert to useLoaderData: 06:00