'export default' is part of the ES6 module system, so to use it you need a javascript runtime that support it, or you can transpile from highter version to lower using babel.
Anyway the library support both.
Thanks for the question i hope i answered it in a clear way :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very useful. I have a question, If I am using Javascript without last features, it's possible to use
export default
instead ofmodule.exports
?'export default' is part of the ES6 module system, so to use it you need a javascript runtime that support it, or you can transpile from highter version to lower using babel.
Anyway the library support both.
Thanks for the question i hope i answered it in a clear way :)