A sample React app made to grab the last 10 posts from the WP API.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
public
.babelrc
.gitignore
LICENSE.md
README.md
index.html
package.json
webpack.config.js

README.md

WP-API React

A simple React application that grabs the 10 latest posts from the WordPress API.

Requirements:

  • a local WordPress site running at http://wp-api.dev/ with the WordPress REST API Plugin installed and activated
  • have node/npm installed

Get Running:

  • clone this repo
  • run npm install to install dependencies
  • run npm start to start the local webserver
  • go to localhost:8080 to see the app running!