This package has been deprecated

Author message:

WARNING: This project has been renamed to react-umd-loader. Install using react-umd-loader instead.

react-load-umd

1.0.0 • Public • Published

LoadUmd experimental

Async load any remote UMD compatible React component into your app.

This component use script.js for loading the remote component.

Usage

You can use unpkg.com or whatever hosting. The only requirement is that the build supports UMD.

import LoadUmd from 'react-load-umd'
 
let cmp = (<LoadUmd url="https://npmcdn.com/react-json-viewer@1.0.9" name="ReactJSONViewer" props={ props }>
             <p>Loading remote component...</p>
           </LoadUmd>);
 

As UMD exposes objects on window, you also need to define the name of the final module.

Dev

This project use the great react-component-boilerplate

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i react-load-umd

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • revolunet