Created
November 15, 2017 23:23
-
-
Save eh3rrera/5788ebd22715109a3ff6abe4cc4b5606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Messages = ({ match }) => ( | |
<div> | |
<ul> | |
{ | |
[...Array(5).keys()].map(n => { | |
return <li key={n}> | |
<Link to={`${match.url}/${n+1}`}> | |
Message {n+1} | |
</Link> | |
</li>; | |
}) | |
} | |
</ul> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment