Getting a Question from the REST API
Understand how to refactor functions to fetch questions from a REST API in a React app, handle responses with typed dates, and perform secure queries with Auth0 authentication.
We'll cover the following...
We'll cover the following...
We are going to refactor our existing getQuestion function to use our http function to get a single question from our REST API.
Implementing HTTP Request in QuestionsData.ts
Carry out the following steps in QuestionsData.ts:
We'll start by clearing out the current implementation, ...