Create a Job Feed page where the latest job postings are fetched from the Hackernews API
. On clicking the job posting, the user should be able to land on the jobs page, which is an external website.
jobId
, title
, time
and postedBy
attributes.https://hacker-news.firebaseio.com/v0/jobstories.json
https://hacker-news.firebaseio.com/v0/item/${postId}.json
Click to reveal
Try using useEffect()
to fetch for the post IDs first. Once you have the postIDs
, make sure to call the metadata API that fetches data for each job. Also, make sure to call in parallelly / synchronously.
Click to reveal
Can you try using splice()
method to mimic pagination? Can you try using pageOffset
and pageNumber
to create your own pagination tool?