Data Fetching with React

Learn to use hacker news API to fetch data.

We'll cover the following

We are currently fetching data, but it’s still pseudo data coming from a promise we set up ourselves. The lessons up to now about asynchronous React and advanced state management were preparing us to fetch data from a real third-party API. We will use the reliable and informative Hacker News API to request popular tech stories.

Instead of using the initialStories array and getAsyncStories function (you can remove these), we will fetch the data directly from the API:

Get hands-on with 1400+ tech skills courses.