This library helps you use WordPress RESTful API in React app. It provides hooks for all API endpoints and Context to simply access data in every component.
First, install the library in your project by npm:
$ npm install react-wordpress-hooks
Or Yarn:
$ yarn add react-wordpress-hooks
Docs for context and all hooks are available here
This project is licensed under the MIT License © 2019-present Jakub Biesiada