2017-03-01 17:42:47 +00:00
|
|
|
import { Link, Router } from '../routes'
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<ul>
|
2018-12-17 16:34:32 +00:00
|
|
|
<li>
|
|
|
|
<Link route='blog' params={{ slug: 'hello-world' }}>
|
|
|
|
<a>Blog: Hello world</a>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Link route='blog' params={{ slug: 'another-blog-post' }}>
|
|
|
|
<a>Blog: Another blog post</a>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Link route='blog' params={{ slug: 'non-existant' }}>
|
|
|
|
<a>Blog: Not found</a>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<button onClick={() => Router.pushRoute('about', { foo: 'bar' })}>
|
|
|
|
About foo bar
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<button onClick={() => Router.pushRoute('about', { foo: 'baz' })}>
|
|
|
|
About foo baz
|
|
|
|
</button>
|
|
|
|
</li>
|
2017-03-01 17:42:47 +00:00
|
|
|
</ul>
|
|
|
|
)
|