react-router-tutorial icon indicating copy to clipboard operation
react-router-tutorial copied to clipboard

Documentation incorrectness

Open tscok opened this issue 9 years ago • 0 comments
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

tscok avatar Oct 19 '16 12:10 tscok