This plugin reads the
asset-manifest.json file in your ReactJS build and includes it in wordpress and allows you to run your application anywhere in wordpress.
You can run your application embedded in wordpress by typing the following shortcode in the WordPress text editor.
[embed_react_build application_id="root" url="https://react-default.netlify.app"]
application_id— The name of the container where the React application is mounted.
(default: root) (required)
url— The URL address of the React Build.
staging_url— The URL address of the React Staging Build. Once defined, you can access the staging build by typing
?test=trueat the end of the url.
Is there a requirement for the plugin?
The only requirement for the plugin is that React Build with the following conditions.
- You need to compile with a version higher than 3.2.0 of the Create React App tool so that your build dependencies are read and understood by the plugin.
- You need to define
.envfile for the structure dependencies to be properly integrated into the page.
For example: https://github.com/nurullah/react-default/blob/master/.env
Where can I embed React Build?
You can run the React Build by typing the shortcode in the text editor from within the post, page or widgets.
Will I always need to prepare the shortcode manually?
In the new versions of the plugin, component/block will be created for page builders such as Gutenberg, WPBakery, Elementor. After those versions, you will be able to integrate your React application more easily.
There are no reviews for this plugin.
Contributors & Developers
“Embed React Build” is open source software. The following people have contributed to this plugin.Contributors
Translate “Embed React Build” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Fixed issue when copying sample shortcode.
- WordPress 5.8 compability tested.
- Readme.txt updated.
- Plugin name renamed.
- Readme.txt updated.
- Readme.md updated.
- Readme files created.
- Staging URL parameter added to the shortcode.
- The manifest.json file is loaded after runtime.
- PHP notice fixed.
- Shortcode created.
- Class created for plugin.