WP Manifestindependent plugin directory
manifest / developer / react-exercise

Pro Photo

by Keyston Clay · github.com/kclay/react-exercise

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/kclay/react-exercise/archive/refs/heads/master.zip

WP React Boilerplate

Sample WordPress plugin for setting up a project with Yarn, Webpack, BrowserSync and React. Tailored to creating a wp-admin page, but completely flexible and can be used for themes as well.

Companion blog post:

Getting started

  1. Clone repo to your wp-content/plugins folder
  2. In config.json change the proxyURL to point to your WordPress admin page or plugin page.
  3. Modify any WordPress config in prophoto. Rename files/methods/strings as necessary.
  4. Activate the plugin in wp-admin
  5. cd into your checked out folder and run yarn
  6. Run yarn start to get Webpack and BrowserSync running

To build for production run:

yarn build

A production-ready WordPress plugin will be built in the pro-photo-plugin folder. Copy folder to `wp-content/plugins' and enable in wp-admin