-
Hi, How can I import zustand in an html file like <script type="module" src=" .... "></script> or <script type="importmap">
{
"imports": {
"zustand": " .... "
}
}
</script> Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
thipages
Jul 23, 2023
Replies: 2 comments 5 replies
-
Use https://esm.sh |
Beta Was this translation helpful? Give feedback.
5 replies
-
solved. Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, this is working fine now. Code example:
from my original question :
script
tag either viamodule
orimportmap
type) is not relevant cause of the dynamic build /external reference of esm.sh.import { createStore } from 'https://esm.sh/zustand/vanilla'