Javascript – es6 module loaded through url cannot access "useState" as it is undefined
I am building a React library using webpack, and the library builds correctly into an es6 module. We are then trying to host this module on a CDN so we can import it through a url instead of node_modules. We…