Skip to content

feat: improved react snippets massively and fixed "Compoment" typos #551

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

Merged
merged 1 commit into from
Apr 13, 2025

Conversation

monoira
Copy link
Contributor

@monoira monoira commented Feb 10, 2025

based on my old proposal

#523

changes

  • removed all "import React from 'React'" snippets. since react 17, importing react like that is no longer needed.
  • changed all "import React, { someComponent }" to "import { some Component }" for same reason as above.

examples of type of changes that happened

// from
"import React from 'react'",
// to - deletion of it

// from
"import React from 'react'",
"",
// to - deletion of it

// from
"import React, { Component } from 'react'",
// to
"import { Component } from 'react'",
  • fixed all "Compoment" typos with "Component" in javascript/ directory.

replaced with bunch of not formatted spaces because repo owner has different formatting rules it seems. Whenever I formatted, everything would get formatted because of that so I'm committing it non-formatted.

…ith "Component"

- removed all "import React from 'React'" snippets. since react 17,
importing react like that is no longer needed.
- changed all "import React, { someComponent }" to "import { some
Component }" for same reason as above.
- fixed all "Compoment" typos with "Component" in javascript/ directory.
@monoira monoira changed the title feat: improved react snippets massively and fixed "Compoment" typos w… feat: improved react snippets massively and fixed "Compoment" typos Feb 10, 2025
@rafamadriz rafamadriz merged commit 31f2a26 into rafamadriz:main Apr 13, 2025
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

Successfully merging this pull request may close these issues.

2 participants