1 min read

Show top 10 articles from Hacker News

Show top 10 articles from Hacker News

Build a React component that shows a list of 10 articles from the Hacker News API.

  • use the Hacker News "Top Articles" API *
  • for each article, display its score, title, url and author
  • do not display the article details until all the data is loaded

* you'll notice I did not include a link to the API - this is on purpose! Looking up the API documentation and figuring out what endpoint to use is part of the challenge.

To get started, you can clone this starter repo: https://github.com/reactpractice-dev/hacker-news-top-10.

Good luck!

When you're ready to check your work, check out the official solution over here.

Get the React Practice Calendar!

28 days of focused practice of increasing difficulty, going through everything from Fundamentals, Data fetching, Forms and using Intervals in React.

You will also get notified whenever a new challenge is published.