★ 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.zipWP 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
- Clone repo to your
wp-content/pluginsfolder - In
config.jsonchange theproxyURLto point to your WordPress admin page or plugin page. - Modify any WordPress config in
prophoto. Rename files/methods/strings as necessary. - Activate the plugin in wp-admin
cdinto your checked out folder and runyarn- Run
yarn startto 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