React-router uses Link to pass parameters.

  node.js, question

According to the official chestnut
<Link to={{ pathname: ‘/user/bob’, query: { showAge: true } }} activeClassName=”active”>Bob With Query Params</Link>
But when clicking, the browser prompts
Warning: Failed propType: Invalid proptoof typeobjectsupplied toLink, expectedstring. Check the render method ofappFull stop
To = “/”is no problem. To can only be followed by a string, not a variable. what about the official chestnut? Help, Big Boys …

Check the version of react-router you installed, and pass object to TO as 2.0. String is required below 2.0.