react-headinjectscript

0.2.0 • Public • Published

HeadInjectScript

a component react that inject script tag on head tag

Build Status

Usage

npm install react-headinjectscript

<HeadInjectScript 
    injectBeforeEvent={callback_before_event} //first event with no parameter
    injectsource={callback_get_string_src} // when retrieve source script whith no parameter
    injectDoneEvent={callback_done_event}  // when append to head tag no parameter
    injectOnLoadScriptEvent={callback_load_event} // when load after injectDoneEvent whith url parameter
 />

Test

npm test

Run Demo

cd demo

npm install

Run demo

npm start

Alt Text

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.00
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i react-headinjectscript

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • brucenpm