0.9.0 • Published 4 years ago

arha-script v0.9.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

arha-script

React component that helps injecting external JS snippets to the document without too much hassel.

Currently tested with SSR and CSR in NextJS.

The component uses node-html-parser library to detect elements from children-prop and creates react components using react.createElement() and what the parser outputs.

Props

Prop keyExpected TypeDescription
childrenstringscripts we want to append to the dom
parseOptsobjectpasses object to node-html-parser's parser
0.9.0

4 years ago