This video is available to students only

Fetching data

Retrieving data from the server

For this lesson we'll return to the client code. We're going to add a "Get Data" button with an onClick handler that calls the API just below the query builder. (This could also be a useEffect hook that fetches data when the query changes.)

 

Start a new discussion. All notification go to the author.