Skip to content

Instantly share code, notes, and snippets.

@ryanbelke
Last active October 12, 2018 01:14
Show Gist options
  • Save ryanbelke/5cf49256679195bc0309ae58438c23eb to your computer and use it in GitHub Desktop.
Save ryanbelke/5cf49256679195bc0309ae58438c23eb to your computer and use it in GitHub Desktop.
Link
import Link from "next/link";
<div className="card-footer">
<Link
as={`/restaurants/${res._id}`}
href={`/restaurants?id=${res._id}`}
>
<a className="btn btn-primary">View</a>
</Link>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment