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
-
Background
The
<script>
tag supports atype
attribute[^1]:unset
importmap
module
speculationrules
Any other value
Analysis
The
importmap
value probably doesn't make sense foruseScript
since animportmap
only works if it's in the initial DOM. (If a future version of React allows runinguseScript
in a server component, then this would be a reasonable value.)speculationrules
is currently experimental.But all the other values are meaningful.
Question
Should
useScript
supporttype
? If so, what values should it support? Any string? Just the enumerated values?Beta Was this translation helpful? Give feedback.
All reactions