WP Manifestindependent plugin directory
manifest / developer / react-app-loader

React App Loader

An mu-plugin that provides an API for loading React applications built with create-react-app into the front-end of WordPress.

by Masonite · github.com/masonitedoors/react-app-loader

2stars
2forks

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/masonitedoors/react-app-loader/archive/refs/heads/master.zip

From the readme

React App Loader An mu-plugin that provides an API for loading React applications built with create-react-app into the front-end of WordPress. Requirements - PHP = 7.1 - WordPress = 5.0 - React application built using Create React App = 3.2 Setup Loader Add the plugin to your site's mu-plugins directory. This plugin is also available to install via composer. React App While this loader does not require any specific structure to your React application, it does require the React app to be loaded as a WordPress plugin. In order to do this, we will need to add a single PHP file so WordPress can recognize it as a WordPress plugin. Although the PHP file can be named anything, the filename should match the nomenclature of the React app directory name in order to follow WordPress plugin development best practices. This PHP file (e.g. react-app-name.php) should include header comment what tells WordPress that a file is a plugin and provides information about the plugin. Example: PHP Interface ReactAppLoader\API::register() The register method has 4 required parameters and should be called within the pluginsloaded action. | Parameter | Type | Description

Read the full README on GitHub →

Releases

TagPublished
1.4.0 Jan 13, 2021

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.