Giter VIP home page Giter VIP logo

embed-react-build's Introduction

Embed React Build

It is a plugin that allows you to integrate your ReactJS builds into wordpress.

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.

Prerequisites

  1. A WordPress (5.4 or later).
  2. A ReactJS Build created with the Create React App 3.2.0 version or higher.
  3. The PUBLIC_URL is defined in the .env file.
    For example: https://github.com/nurullah/react-default/blob/master/.env

Usage

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"]

Shortcode Parameters

Name Description Default Optional?
application_id The name of the container where the React application is mounted. root required
url The URL address of the React Build. required
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. optional

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPLv3

embed-react-build's People

Contributors

nurullah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.