Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** take all the routes of the app ... */
- props.routes.map((route, i) => (
- /**
- * ... and transform them into a Link to the respective path,
- * each item in the React-dom requires a unique key
- */
- <PositionedLink key={'ROUTE_'+i} to={ route.path } left={!route.customType || route.customType.left}>
- {
- /** display the name of the <Route /> component*/
- route.name
- }
- </PositionedLink>
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement