State Management · Junior · Question 49 of 75

What is a loader in React Router?

Explanation

The router calls the loader on navigation and the component reads the result with useLoaderData() (or via props in framework mode). Data loading starts with navigation instead of after render, which avoids request waterfalls.

Further reading

Problem with a question

State Management · Junior · question 49

Test yourself

Take the State Management · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz