Closed gcfabri closed 6 years ago
I would like to do something like this:
as={`/p/${post.title.trim().replace(/\s+/g, `-`)}`}
You can do it like this:
routes.add('post', '/p/:title')
<Link route='post' params={{title: post.title.trim().replace(/\s+/g, `-`)}}> ...
I would like to do something like this: