Import the NavLink component from react-router-dom to get additional benefits, such as highlighting of the active link. Similarly like in Route, you need to include the "exact" prop to ensure correct highlighting in a sub-path.
Home page