Skip to content

Clarification needed: "export default" restriction phrasing #3800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ali-Amir-code opened this issue Dec 21, 2024 · 0 comments
Closed

Clarification needed: "export default" restriction phrasing #3800

Ali-Amir-code opened this issue Dec 21, 2024 · 0 comments

Comments

@Ali-Amir-code
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant