Should useScript support type? #622
jamesarosen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
The
<script>tag supports atypeattribute[^1]:unsetimportmapmodulespeculationrulesAny other value
Analysis
The
importmapvalue probably doesn't make sense foruseScriptsince animportmaponly works if it's in the initial DOM. (If a future version of React allows runinguseScriptin a server component, then this would be a reasonable value.)speculationrulesis currently experimental.But all the other values are meaningful.
Question
Should
useScriptsupporttype? If so, what values should it support? Any string? Just the enumerated values?Beta Was this translation helpful? Give feedback.
All reactions