We'll create fresh WordPress site with Embed React Build installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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.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=true
at the end of the url.