gjcarrow / WP-React-Theme

Custom Wordpress theme created with React, Wordpress Rest API, and React Router to handle dynamic page and post data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wordpress+React Theme

This project utilizes the native Wordpress Rest API (4.7+) to power a custom theme built using React. This is a true single page app, utilizing React Router to handle dynamic routing using page data to create routes on the fly.

Download a fresh copy of Wordpress, and replace wp-content/.

Installation and Tools

We use webpack for module bundling and a gulp task for style (SCSS) compilation.

To get started, run:

~ npm install

Running npm run dev will start a local webpack dev server, as well as our gulp task.

npm run build generates a production bundle, ready and enqeued by our theme's functions.php

About

Custom Wordpress theme created with React, Wordpress Rest API, and React Router to handle dynamic page and post data.

License:Other


Languages

Language:PHP 61.9%Language:JavaScript 25.0%Language:CSS 13.1%Language:HTML 0.1%