---
title: "Discussion on \"Default Or Named Export\" | Hashnode"
description: "Discussion on \"Default Or Named Export\". ES6 provides us to import a module and use it in other file.\n\nES6 provides two ways to export a module form a file:\n\nnamed export\n\ndefault export\n\n\n\n\nDefault Export: (export default)\n\nOne can have only one default export per file.\n\nwhen we import we ..."
url: "https://hashnode.com/posts/default-or-named-export/640450f505884a973a1e998c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Default Or Named Export](https://megha17.hashnode.dev/default-or-named-export?utm_source=hashnode&utm_medium=feed)

ES6 provides us to import a module and use it in other file. ES6 provides two ways to export a module form a file: named export default export Default Export: (export default) One can have only one default export per file. when we import we ...

Mar 5, 2023 · 2 min read · megha17.hashnode.dev  
Read the article

-   [#react-js](https://hashnode.com/tag/react-js)

## Written by

[Megha Khatri](https://hashnode.com/@megha17)

@megha17

  
[View profile](https://hashnode.com/@megha17)

## Responses 1

Markdown supported · ⌘↵ to post

[Aryan Namdev](https://hashnode.com/@aryanamdev)

[Mar 5, 2023](https://hashnode.com/posts/default-or-named-export/640450f505884a973a1e998c/comment/64045418024dffb6cd377459)

Helpful!
