Skip to content

A very simple headless WordPress single page app using react to connect WordPress API

Notifications You must be signed in to change notification settings

bbuilds/react-wordpress-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeadLess React App with WP-REST-API

Simple single page app using react to pull in content via WordPress API

Why?

I wanted to learn React with my existing knowledge of WordPress. What better way then to build a single page app with the improved WP-REST-API!

Currently

The app pulls in posts, categories, and has a simple login feature in which you can delete a post.

Installation

To run the project on localhost:8080:

npm start

Project uses JWT for Authentication. You will need to install the plugin and configure accordingly if you wish to use the login feature.

Make sure to update the src/auth.js with the apporiate URLs.

To-Dos

  • add error handling for failed logins
  • add search to the page

About

A very simple headless WordPress single page app using react to connect WordPress API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published