A simple boilerplate theme for wordpress using React. You can read more about setup and installation on my blog: https://manuelmol.nl/blog/29
Clone the project to your wordpress theme folder
Open a terminal in the project folder and install the project with npm
git clone https://github.com/maantjemol/theme-react-wordpress
cd theme-react-wordpress
npm install
Start the live server with:
npm run start
Build the theme with:
npm run build
Your build theme folder structure should look like this:
\- build
|- index.css
|- index.js
|- index.asset.php
|- style.css
|- index.php
|- functions.php
Here are some related projects I took inspiration from: