You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
React Class Components VS Functional Components w/hooks #123
I'm also down for hooks, but I'm wondering if it will be yet another barrier to entry given that most resources online are written using class components.
I think say we use fc + hooks and also be considerate in thinking about giving low hanging fruit as starter issues - that might lead to them understanding hooks better
Functional Components + Hooks. @timmyichen Converting Class components to Hooks won't be much of a problem, besides there are VS Code extensions to do the same (in worst case scenario).
changed the title [-]React Class Components vs Functional Components w/hooks[/-][+]/polls React Class Components 'Functional Components w/hooks'[/+]on Nov 15, 2019
changed the title [-]/polls React Class Components 'Functional Components w/hooks'[/-][+]React Class Components VS Functional Components w/hooks[/+]on Nov 15, 2019
Activity
chrismgonzalez commentedon Oct 22, 2019
I'm down for Hooks since that is the latest and greatest. Plus it will save us a refactor later.
timmyichen commentedon Oct 22, 2019
I'm also down for hooks, but I'm wondering if it will be yet another barrier to entry given that most resources online are written using class components.
chrismgonzalez commentedon Oct 22, 2019
In that case I would just point to React docs. They're going to have to learn anyways, right?
timmyichen commentedon Oct 22, 2019
I suppose, but the less things people have to learn, the more people will contribute 🙃
chrismgonzalez commentedon Oct 22, 2019
Let's see what others think over the next 24 hours? I am interested to hear the opinions of others.
Abott1222 commentedon Oct 22, 2019
I think say we use fc + hooks and also be considerate in thinking about giving low hanging fruit as starter issues - that might lead to them understanding hooks better
imVinayPandya commentedon Oct 22, 2019
I recommend Functional Component + hooks. As @chrismgonzalez mentioned that it will save time of refactoring.
abidRahim commentedon Oct 22, 2019
Functional Components + Hooks.
@timmyichen Converting Class components to Hooks won't be much of a problem, besides there are VS Code extensions to do the same (in worst case scenario).
rinajhinjhina commentedon Oct 22, 2019
Functional components + hooks 100%.
Hooks will allow us to abstract out complex bits of logic which if anything lowers the barrier to entry since newcomers won't have to deal with them.
nulfrost commentedon Oct 22, 2019
Hooks 100% of the way, I think they'll be a lot easier to pick up than most people think.
vardhanapoorv commentedon Oct 22, 2019
I think hooks is a good way to go with!
timmyichen commentedon Oct 22, 2019
Sounds like it's pretty unanimous! 👍 Lets go hooks! ↩️
xarielx commentedon Oct 23, 2019
Functional Component + hooks, GitHub should add a polling button, is there a pull request to update the documentation regarding this? @timmyichen
timmyichen commentedon Oct 23, 2019
Negative - feel free to create one!
xarielx commentedon Oct 23, 2019
Should we install this to facilitate future discussion of this kind? https://github.com/apps/polls @timmyichen @chrismgonzalez
QuincyLarson commentedon Nov 15, 2019
/polls React Class Components 'Functional Components w/hooks'
[-]React Class Components vs Functional Components w/hooks[/-][+]/polls React Class Components 'Functional Components w/hooks'[/+][-]/polls React Class Components 'Functional Components w/hooks'[/-][+]React Class Components VS Functional Components w/hooks[/+]QuincyLarson commentedon Nov 15, 2019
We've resolved during our Nov 15 meeting:
Hooks are the norm. Classes can be used when needed.
allella commentedon Nov 16, 2019
Meeting Notes with more on the decision to use hooks.
https://github.com/freeCodeCamp/chapter/wiki/Meeting-Notes-November-15,-2019