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.)
1
// App.tsx
2
<button onClick={getData}>Get data</button>
This page is a preview of Building Advanced Admin Reporting in React