You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
Solution:
Add
export default
to thetagin
function:Import the script as a module:
Then it is possible to import
tagin
inside a script:Reason:
This removes the current way of inline importing/using
tagin
inside HTML:Inline JS is generally considered bad practice.
Pros:
Easier to import a required function into an existing script file, if there will useful functions in the future.
Cons:
Internet Explorer does not support
import
. (Is that really a con though?)The text was updated successfully, but these errors were encountered: