Skip to content

DevGier/react-wordpress-starter

Repository files navigation

React WordPress starter theme

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.

Features

New to React?

Here you can find documentation to get you started with your first project: https://react.dev/

Getting started

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

Dependencies

  • NodeJS v16 or higher
  • Yarn
  • PHP 8.0.22 or higher

Installation

Install dependencies

Run the following command to install all npm/yarn dependencies

npm install

Or

yarn install

To run locally use:

npm run dev

Or

yarn dev

To build assets use:

npm run build

Or

yarn build

Changelog

30-05-2023 Initialisation

  • Theme initialisation

About

A starter theme for WordPress built with React and Vite.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published