Skip to content
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

[Typo]: Missing Blank Line Between Import Statements and Code Block in Sample Code #7125

Open
dev-satoshi opened this issue Aug 25, 2024 · 0 comments · May be fixed by #7126
Open

[Typo]: Missing Blank Line Between Import Statements and Code Block in Sample Code #7125

dev-satoshi opened this issue Aug 25, 2024 · 0 comments · May be fixed by #7126

Comments

@dev-satoshi
Copy link

Summary

In this section of the page, two of the sample codes are missing a blank line between the block of import statements and the following code block. This inconsistency affects readability and contrasts with other examples where a blank line is included.

Page

https://react.dev/learn/updating-objects-in-state#treat-state-as-read-only

Details

Most sample codes in the React documentation include a blank line between the import statements and the following code block. However, in this section, the two sample codes do not include this blank line. To maintain consistency and improve readability, it would be beneficial to add the missing blank lines. This practice is commonly recommended in many style guides and projects to enhance code clarity and maintainability.

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

Successfully merging a pull request may close this issue.

1 participant