Working with AG Grid
AG Grid (https://www.ag-grid.com/) is a flexible data grid component for React apps. It is like a spreadsheet that you can use to present your data, and it can contain interactivity. It has many useful features, such as filtering, sorting, and pivoting. We will use the Community version, which is free (under an MIT license).
Let’s modify the GitHub REST API app that we created in Chapter 10, Consuming the REST API with React. Proceed as follows:
- To install the
ag-grid
community component, open the command line or terminal and move to therestgithub
folder, which is the root folder of the app. Install the component by typing the following command:npm install ag-grid-community ag-grid-react
- Open the
App.tsx
file with Visual Studio Code (VS Code) and remove thetable
element inside thereturn
statement. TheApp.tsx
file should now look like this:import { useState } from 'react'; import axios from &apos...