Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Sample script that shows how to inject a remote script into a regular React App (Add to Any)

Notifications You must be signed in to change notification settings

icampana/react-remote-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React External script loading Sample

This project was bootstrapped with Create React App.

Motivation

Most of the external tools that we need to integrate into a regular website just adds a script and injects their code/elements into a container, on any regular webpage it is meant to be just a copy and paste issue but on a React app it is connected to the App life cycle.

This small sample app shows how to add a remote script on the componentWillMount event which will allow the Add To Any script (for this example) to find the container div and inject its code.

About

Sample script that shows how to inject a remote script into a regular React App (Add to Any)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published