How to create Anchor Tag in react-router?
问题 I am using react-boilerplate (3.4.0) with react-router internally for the routing. I have tried to create a Link with : < a href="#anchor-tag" >< /a > When I click on it I expect to scroll to the div with id=anchor-tag It just scroll to the top of the page, even if I use a Link component instead of a < A > tag. Does we have to care about use < A > or < Link > ? How should we create anchor tag in react-router ? 回答1: This might be a while late but what you can do is add this to your component: