Wordpress plugins
Embed React app

Embed React app

Version : 1.0.0
Tested up to : 4.9.8
Number of download : 18
Author : pavex@ines.cz
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

Embed React app
Embed React app
Embed React app
Embed React app

This is a simple way how to embed react application in to your post. In my blog, a wanted include small application, but typical react app is a single page app, hardly linked in index.html. He needed a simple way to solve it. The result is visible on my blog, for example: https://www.publicalbum.org/blog/embedding-google-photos-albums. How to do it You need compiled React app hosted on public url. Find filenames after building an application. If you using create-ract-app script, all what you need, find in “static” directory. Assemble file names into a shortcode like this: [reactapp id=”root” js=”pathto/static/js/main.000000.js” css=”pathto/static/css/main.000000.css”] id – ID of application root element js – path to Java script bundle css – path to Stylesheet That’s all. When application was updated, you must setup new links to shortcode.

Download now