Skip to content

Link to single article page

Now that we have our single article page built, we need a way to link to it from the individual news cards that we display on the news index page.

In this guide, you learned how to:

  • link to a single article page from the news index page
  • use the Link component from '@remix-run/react' to create a link to the single article page
  • incorporate the article ID into the URL using a template literal string
  • set the link to prefetch the page data when the user hovers over it

You can now navigate to the single article page from the news index page by clicking on a news card.

In the next guide, you will fetch and display the article data on the single article page.