I am sorry first and foremost, I am a noobie trying to learn reactjs for a project at school. I am currently generating a table row with data passed through an array as such (dynamically through sockets)
NOTE: I am using bitcoin component as a measure of debugging only, I will eventually include this solution import modules from files in directory
{
coins.map((coin,i) => (
<tr key={i}>
<td className="coin_rank">{coin.rank}</td>
<td className="coin_link">
<img className = "coin_logo" src={require('./logos/' + coin.id + '.png')} alt = {coin.id}/>
<Link to={'/coins/' + coin.id}>{coin.name}</Link>
<Route path={'/coins/' + coin.id} component={Bitcoin} />
</td>
<td className="coin_price"><NumberFormat value={coin.price_usd} displayType={'text'} thousandSeparator={true} prefix={'$'} /></td>
<td className="market_cap"><NumberFormat value={coin.market_cap_usd} displayType={'text'} thousandSeparator={true} prefix={'$'} /></td>
<td className="coin_supply"><strong>{coin.symbol}</strong> <NumberFormat value={coin.available_supply} displayType={'text'} thousandSeparator={true} /></td>
<td className="coin_change">{coin.percent_change_24h}%</td>
</tr>
))
}
It loads the component no problem, but it's loading in the same page Example of the error
But I am trying to get it to open in a new page instead. I have my router components declared at the start and end of the render method. Is this something related to dynamic generating of my tables?