Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@times-visuals/script-loader

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-visuals/script-loader

Simple React component for loading a script before rendering it's children

latest
npmnpm
Version
1.2.0
Version published
Maintainers
2
Created
Source

Script Loader

Simple React component for loading a script before rendering its children

Installation

# Yarn
$ yarn add @times-visuals/script-loader

# npm
$ npm add @times-visuals/script-loader

Usage

import ScriptLoader from "@times-visuals/script-loader";

export default () => (
  <ScriptLoader src="url/to/script">
    {() => (
      <div>Hello, world! This renders once the `src` script has loaded</div>
    )}
  </ScriptLoader>
);

FAQs

Package last updated on 14 Jun 2019

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