F
F
frolldoll2018-05-09 16:25:24
React
frolldoll, 2018-05-09 16:25:24

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 - 5af2f66515bdf168888174.pngIn 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 question

Ask a Question

731 491 924 answers to any question