How to add a <script> tag?
See original GitHub issuereact-prism recommends to add a script tag directly in the HTML:
<script src="path/to/your/prism.js" ></script>
Is there a way to do this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
JavaScript Where To - W3Schools
You can place an external script reference in <head> or <body> as you like. The script will behave as if it was located...
Read more >How To Add JavaScript to HTML | DigitalOcean
You can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code.
Read more >Dynamically add script tag with src that may include document ...
You can use the following code to load the script dynamically: var scriptElm = document.createElement('script'); scriptElm.src = 'source ...
Read more >The Script element - HTML: HyperText Markup Language
These examples show how to import (an external) script using the <script> element. <script src="javascript.js"> ...
Read more >An Essential Guide on How to Add JavaScript to HTML - Linode
In order to use JavaScript on an HTML web page, you must use the <script> tag to either write your JavaScript code directly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
updating the answer: add a
preview-head.html
to the folder.storybook
.Yes, there is, but I don’t think there’s any docs on it yet. See #77.
Basically, create a
head.html
in your.storybook
. That will get included.Note: This will add it to
<head>