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 - 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