Inspired by VueJS WordPress theme starter.
Why React in a theme? This project is made so that WordPress themes can have the same power as a headless website while not having the difficulty of seperating your WordPress installation and frontend.
- Bootstrap 5
- Amazingly fast compiling and hot refresh with Vite
- React Generouted for creating routes
- SASS/SCSS support
- Eslint for Vite
Here you can find documentation to get you started with your first project: https://react.dev/
All of the code you're going to edit is located in /src/. From there it's broken into a few logical directories.
- /src
- /components React components
- /pages React pages for routing
- /styles All your styling
- NodeJS
v16 or higher
- Yarn
- PHP
8.0.22 or higher
Run the following command to install all npm/yarn dependencies
npm install
Or
yarn install
npm run dev
Or
yarn dev
npm run build
Or
yarn build
- Theme initialisation