Answer the question
In order to leave comments, you need to log in
link router not working?
The list is rendered with a link button that leads to the page 'trade/(object id)' , the buttons themselves are also located on the page 'trade/id -some object'
return(
<tr key={index}><td><Link to={`/trade/${prices.name}`}>{prices.symbol}</Link></td><td>{prices.price_usd}$ </td><td><a style={{ color }}>({percent})%</a></td><td>Sell</td></tr>
)
But when I click, it does not go there, but remains on the same page, moreover, the url has changed, it is not unimportant that on the page, depending on the url, my component displays a certain graph, but now when I click on the button, the graph does not display anything url - In the screenshot you can see how the url changes, but nothing works - if you click on the url and enter, the page will reload and the chart will be displayed, what's the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question