Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cool-hooks/react-wordpress-hooks

📄 Set of hooks for WordPress REST API
https://github.com/cool-hooks/react-wordpress-hooks

api hooks library react rest wordpress

Last synced: about 2 months ago
JSON representation

📄 Set of hooks for WordPress REST API

Awesome Lists containing this project

README

        

# [react-wordpress-hooks](https://github.com/cool-hooks/react-wordpress-hooks)

[![NPM version](https://img.shields.io/npm/v/react-wordpress-hooks?style=flat-square)](https://www.npmjs.com/package/react-wordpress-hooks)
[![NPM downloads](https://img.shields.io/npm/dm/react-wordpress-hooks?style=flat-square)](https://www.npmjs.com/package/react-wordpress-hooks)
[![NPM license](https://img.shields.io/npm/l/react-wordpress-hooks?style=flat-square)](https://www.npmjs.com/package/react-wordpress-hooks)
[![Travis](https://img.shields.io/travis/cool-hooks/react-wordpress-hooks/master?style=flat-square)](https://travis-ci.org/cool-hooks/react-wordpress-hooks)
[![Bundle size](https://img.shields.io/bundlephobia/min/react-wordpress-hooks?style=flat-square)](https://bundlephobia.com/result?p=react-wordpress-hooks)

## About

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.

### Similar Projects

- [Gutenberg Packages](https://github.com/WordPress/gutenberg/tree/master/packages/)

## How to Install

First, install the library in your project by npm:

```sh
$ npm install react-wordpress-hooks
```

Or Yarn:

```sh
$ yarn add react-wordpress-hooks
```

## Getting Started

[Docs for context and all hooks are available here](https://cool-hooks.github.io/react-wordpress-hooks/)

## License

This project is licensed under the MIT License © 2019-present Jakub Biesiada