Must have JWT Authentication plugin installed into your wordpress website. Follow the installation guide here. Port 3000 must be open and make sure to replace the ROOT_URL found inside the index file under actions directory.
This project is to serve as a guide for users that is looking for an idea on how to use Wordpress REST API with React as a frontend. Improvements are welcome. You may create a pull request or just contact me at my personal website.
I also created an OAuth 2.0 demo as well found here -https://github.com/loq24/oauth-demo.
Clone repo:
git clone https://github.com/loq24/wp-react.git
cd wp-react
npm install
npm start
Access http://localhost:3000/
I converted the whole project with Typescript. Please check the Typescript version here
MIT