Skip to content

Clarification needed: "export default" restriction phrasing #3800

@Ali-Amir-code

Description

@Ali-Amir-code

Description: In the Import/Export section, under Export Default, the documentation states:
"There may be only one export default per file."

This wording could be misleading, as it implies optionality. To avoid confusion, I suggest rephrasing it to:
"There must be only one export default per file."

This phrasing more accurately reflects the restriction in JavaScript that a file cannot have more than one export default.

Thank you for maintaining such an excellent resource!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions