ariel-walley / dnd-app

2 stars 0 forks source link

Route generation in App.js #26

Open ariel-walley opened 2 years ago

ariel-walley commented 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;