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-gridcommunity component, open the command line or terminal and move to therestgithubfolder, 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.tsxfile with Visual Studio Code (VS Code) and remove thetableelement inside thereturnstatement. TheApp.tsxfile should now look like this:import { useState } from 'react'; import axios from &apos...