The "export" statement is used to export functions, objects or primitives from a given module(or file).
There are two types of export available:
- Named export - useful to export several values from a given file.
- Default export - there can only be a single default export from a given file.
If a module defines a default export, then you can import the default export by omitting the curly braces.
Read more:
Read more:
http://exploringjs.com/es6/ch_modules.html
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export
No comments:
Post a Comment