It works perfectly because I haven\'t included JSX, but when I replace the script type with text/babel, it doesn\'t work because the module fails to load. bro
text/babel
bro
As mentioned in the docs, it's added in: v7.10.0.
v7.10.0
If you want to use your browser's native support for ES Modules, you'd normally need to set a type="module" attribute on your script tag. With @babel/standalone, set a data-type="module" attribute instead, like this:
If you want to use your browser's native support for ES Modules, you'd normally need to set a type="module" attribute on your script tag.
type="module"
With @babel/standalone, set a data-type="module" attribute instead, like this:
data-type="module"