Created
November 15, 2017 23:22
-
-
Save eh3rrera/fcbd064f91bc5e64b67141274737b436 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
import React from 'react'; | |
import { | |
Link | |
} from 'react-router-dom'; | |
const Messages = () => ( | |
<div> | |
<ul> | |
{ | |
[...Array(5).keys()].map(n => { | |
return <li key={n}> | |
<Link to={`messages/${n+1}`}> | |
Message {n+1} | |
</Link> | |
</li>; | |
}) | |
} | |
</ul> | |
</div> | |
); | |
export default Messages; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment