Skip to content

Instantly share code, notes, and snippets.

@eh3rrera
Created November 15, 2017 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eh3rrera/5788ebd22715109a3ff6abe4cc4b5606 to your computer and use it in GitHub Desktop.
Save eh3rrera/5788ebd22715109a3ff6abe4cc4b5606 to your computer and use it in GitHub Desktop.
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