React Fundamentals

0% completed

Previous
Next
Quiz
What is the primary function of the useNavigate hook in React Router?
A
To create routes dynamically.
B
To enable programmatic navigation between routes
C
To display nested route components.
D
To fetch data for a route.
What is the role of the Link component in React Router?
A
To prevent page reloads while navigating.
B
To create dynamic routes
C
To manage nested routes.
D
To load external pages in a new tab.
How does React Router handle undefined routes?
A
It triggers a 404 error and stops the app.
B
It navigates to the home page
C
It renders a wildcard route with a "Page Not Found" component.
D
It redirects to the previous page
What is the purpose of the Outlet component in React Router?
A
To show a loading spinner during route changes
B
To handle navigation between different routes.
C
To define the path for a route.
D
To render child components of a route

.....

.....

.....

Like the course? Get enrolled and start learning!
Previous
Next