New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-isomorphic-scriptloader

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-isomorphic-scriptloader

Load scripts with ease

Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
11
83.33%
Maintainers
1
Weekly downloads
 
Created
Source

React Isomorphic ScriptLoader

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

Installation

yarn add 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 (
      <div>
        <Loader src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places" 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> }
      </div>
    )
  }
}

License

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

Keywords

react

FAQs

Package last updated on 09 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts