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

[Maintainment] Convert all function to components #166

Open
JamirLeal opened this issue Feb 14, 2022 · 0 comments
Open

[Maintainment] Convert all function to components #166

JamirLeal opened this issue Feb 14, 2022 · 0 comments

Comments

@JamirLeal
Copy link

JamirLeal commented Feb 14, 2022

If function component (Hooks) does not use "this" keyword then convert it to ES6 arrow function.
Instead of function componentName() { }
Use const componentName = () => { }

  • If component is only render then use const componentName = () => ()
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