react-jspm-loader

1.1.0 • Public • Published

react-jspm-loader experimental

npm version

Async load any jspm compatible React component into your app.

This component use script.js to load the jspm.io browser runtime.

See also : React UMD loader

Usage

You can require modules in the jspm registry : github and npm

This example loads the npm react-json-viewer component into our app

import JsPmLoader from 'react-jspm-loader'
 
let cmp = (<JsPmLoader module="npm:react-json-viewer" props={ props }>
             <p>Loading remote component...</p>
           </JsPmLoader>);
 

Dev

This project use the great react-component-boilerplate

Package Sidebar

Install

npm i react-jspm-loader

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • revolunet