React Table

React Table (https://react-table.js.org) is a flexible table component for React apps. It has many useful features, such as filtering, sorting, and pivoting. Let's use the GitHub REST API app that we created in Chapter 8, Consuming the REST API with React:

  1. To install the react-table component, open PowerShell and move to the restgithub folder, which is the root folder of the app. Install the component by typing the following command:
      npm install react-table
  1. Open the App.js file with VS Code and remove tablerows and the table inside the return. Now, the App.js file should appear as follows:
import React, { useState } from 'react';import './App.css';function App() {  const [data, setData] = useState([]); const [keyword, setKeyword] ...

Get Hands-On Full Stack Development with Spring Boot 2 and React - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.