Recall & Review
beginner
What is the purpose of navigation links in a React app?
Navigation links let users move between different parts of the app without reloading the page. They help create a smooth and fast user experience.Click to reveal answer
beginner
Which React library is commonly used to create navigation links?
React Router is the most popular library for handling navigation links and routing in React apps.
Click to reveal answer
beginner
How do you create a navigation link using React Router?
Use the
<Link to="/path">Text</Link> component from React Router. It changes the URL and shows the new page without reloading.Click to reveal answer
intermediate
Why should navigation links use semantic HTML and ARIA labels?
Semantic HTML and ARIA labels help screen readers and assistive devices understand the links. This makes the app accessible to all users.
Click to reveal answer
intermediate
What is the difference between <a> tags and React Router's <Link> component?
The <a> tag reloads the whole page when clicked. React Router's <Link> changes the URL and updates the page content without reloading, making navigation faster.
Click to reveal answer
Which React Router component is used to create navigation links?
✗ Incorrect
The component creates navigation links that update the URL without reloading the page.
What happens when you click a React Router <Link>?
✗ Incorrect
React Router changes the URL and updates the page content without a full reload.
Why use ARIA labels on navigation links?
✗ Incorrect
ARIA labels help screen readers understand the purpose of links, improving accessibility.
Which HTML element is best for navigation links in React apps?
✗ Incorrect
React Router's component is best because it handles navigation without page reloads.
What is a benefit of using React Router for navigation?
✗ Incorrect
React Router enables smooth navigation by updating the URL and content without reloading the page.
Explain how navigation links work in a React app using React Router.
Think about how clicking a link updates the page without refreshing.
You got /4 concepts.
Describe why accessibility is important for navigation links and how to improve it.
Consider users who rely on assistive technology.
You got /4 concepts.