1.2.0 • Published 5 years ago

@times-visuals/script-loader v1.2.0

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
5 years ago

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>
);
1.2.0

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago