next-avenues 0.8.4
A fancy dynamic router for Next.js heavily inspired on Adonis.js and next-routes
Link component based on next/link It is possible to use this component exactly the same as Next.js component but it has some extra props.
- name Route name
- params Route parameters (note: this is also the place to define your subdomain variables)
- domain Route domain (note: if the domain differs from the current active domain, push state won't be triggered)
- query Additional query parameters
Name | Type | Description | |
---|---|---|---|
props | Object |
Props that are used by next-avenues: (name:string, params:?Object, domain:?string, query:?object). |
<Link name="article" domain="blog.next-avenues.com" params={{slug: 'lorem-ipsum'}} query={{ q: 'search' }} ><a>link</a><Link>
React.Element
Documentation generated with doxdox.