Open ariel-walley opened 2 years ago
let routes = players.map((player, index) => <Route path={`/player/${player}`} key={`RouteFor${player}`}> <PlayerWindow key={`PlayerWindow-${player}`} playerInd={index}/> </Route> ) console.log(routes); return routes;