Starter project for a WordPress plugin to deliver a React mini-app
- Clone repository into plugins directory of WordPress
- From base directory of plugin, run composer install
- From js directory below that, run npm install
- From base directory, edit wp-react-app.php to have your name and description for your plug-in in the comment area
- Modify files in php directory to reflect your needs including ajax calls
- Update css and js files for your react app
- Run webpack to create your included js file
- In WordPress admin area, create page for your app
- Add shortcode as defined in your php function file
- Activate your plugin
- Navigate to your page``