thomhos / next-routing-tools

Easily configure dynamic routes for Next.js
3 stars 0 forks source link

Handle href as objects #2

Open thomhos opened 6 years ago

thomhos commented 6 years ago

next/Link allows you to pass an object as href as well as a string. Currently the routes in this package only accept strings.

<Link href={{ pathname: '/about', query: { name: 'Zeit' } }}>