What is the difference between Link and an anchor tag?
Model answer
A normal <a href> triggers a full page load. Link from React Router changes the URL and renders the new route on the client without reloading, which keeps app state and feels faster. NavLink adds an active style when its route matches.
Use a normal anchor for external sites.
Learn this topic
React Router: Multiple Pages, Links, Params, Layouts and Protected Routes in the course React.js Full Course: Beginner to Advanced.
Sign in to add your own answer.