The export and import module ES
export 和 export default
Two export, let's talk about the difference between them
- export and export default can be used to derive constants, functions, files, modules, etc.
- In a file or module, export, import can have multiple, export default is only a
- By way of deriving export, when introduced to add {}, export default is not required
- export directly derived variable expression, export default not.