https://github.com/snipcart/wordpress-rest-api-react
https://github.com/snipcart/wordpress-rest-api-react
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/snipcart/wordpress-rest-api-react
- Owner: snipcart
- License: other
- Created: 2020-03-09T15:07:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T00:12:47.000Z (over 4 years ago)
- Last Synced: 2025-03-28T10:50:21.784Z (2 months ago)
- Language: PHP
- Size: 13.1 MB
- Stars: 92
- Watchers: 7
- Forks: 49
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Demo: Using WordPress with React to Build a Modern Web App (WP REST API)

WordPress REST API is a huge step forward for frontend developers looking to combine the power of JavaScript frameworks like React (or [Vue.js](https://snipcart.com/blog/wordpress-vue-headless)) with WordPress.
This is exactly what we did with this demo of the WordPress REST API in the work.
We use WordPress as a backend, and the REST API to feed data into a React app.
More precisely, you’ll learn:
- How to access the WP REST API from your frontend
- How to add a custom post type and expose it to the API
- How to handle React Hooks (and create a custom one)
- How to build a React app backed by this API> Read the full-on intro & tutorial [here](https://snipcart.com/blog/reactjs-wordpress-rest-api-example)
> Try the live demo [here](https://snipcart-wordpress-react.herokuapp.com/)