Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. /** take all the routes of the app ... */
  2. props.routes.map((route, i) => (
  3. /**
  4. * ... and transform them into a Link to the respective path,
  5. * each item in the React-dom requires a unique key
  6. */
  7. <PositionedLink key={'ROUTE_'+i} to={ route.path } left={!route.customType || route.customType.left}>
  8. {
  9. /** display the name of the <Route /> component*/
  10. route.name
  11. }
  12. </PositionedLink>
  13. ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement