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

Hooks and functional components #52

Open
Gijsdeman opened this issue Oct 8, 2023 · 1 comment
Open

Hooks and functional components #52

Gijsdeman opened this issue Oct 8, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Gijsdeman
Copy link
Contributor

Since almost all components are classes, it is quite cumbersome to use hooks. Furthermore, some hooks will still throw warnings even if you manage to get them to work in class components.

Since React is nowadays mostly based on functional components either way, it is a good idea to rewrite all class components as functional components. This makes the code also more consistent (as they are both being used right now) and will make maintainability better.

@Gijsdeman Gijsdeman added the help wanted Extra attention is needed label Oct 8, 2023
@JustSamuel
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants