Module:

Import and export: it is used to access files from one file to another file. For this purpose, we have to use export and import concepts.

Export: Exports are classified into two types they are :

  1. Default export

  2. Named export.

Default export:

Syntax: export default <component>

Example: export default login

Named export: