scrimba
Learn React Router
Loaders & errors
Loaders Quiz
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Loaders Quiz
Expand for more info
quiz.md
run
preview
console
1. When does the code in a loader function run?



2. What are some benefits of using a data loader function
instead of fetching our data in a useEffect in a component?



3. What change do we need to make to our BrowserRouter before
we can use loaders (or any of the new data-layer API features)
in our app?



4. What are the steps we need to take in order to use
a loader on any given route?
Console
index.html
-3:12