hast-util-to-jsx-inline-script
v1.1.0
Published
Transform HAST to JSX incliding Script tags
Downloads
81
Readme
This is a cutom fork to implement script
tag conversions. Inline scripts don't execute by default in JSX. As the contents are added to DOM using innerHTML
. And DOM don't execute the scritps that are added using innerHTML
.
You need to rely on some custom react
/ next
/ preact
platform specific components. So, forked the main repo.
Thanks to the original authors, and please head to the main repository
This will generate a invalid JSX if not used with external components for script execution.