Load scripts with ease

Usage no npm install needed!

<script type="module">
  import reactIsomorphicScriptloader from '';


React Isomorphic ScriptLoader

React package to load scripts into your isomorphic (server side rendered) webapp.


npm install --save react-isomorphic-scriptloader

Example Usage

import React from 'react'
import Loader from 'react-isomorphic-scriptloader'

export default class MyComponent extends React.Component {
  state = { scriptsLoaded: false };
  render() {
    return (
        <Loader src="" onLoad={() => this.setState({ scriptsLoaded: true })} />
        { this.state.scriptsLoaded &&  <div>Yayy google maps loaded</div> }
        { !this.state.scriptsLoaded &&  <div>Please wait while google maps is being loaded</div> }


This package is licensed under the terms of MIT License. See the LICENSE file for further information.