react-router-tutorial
react-router-tutorial copied to clipboard
Documentation incorrectness
trafficstars
Here is says:
"We will use a spread operator here, the three dots. It clones our props and in this use case it clones activeClassName to our desired component for us to benefit from."
This would of course be correct if activeClassName was defined as a prop in the first place. Instead, and more importantly in this case, I think it should be noted that the spread operator clones the to prop defined on the <NavLink> in // modules/App.js