React Class Components VS Functional Components w/hooks
Title says it all. What's our opinion on using class components vs functional components with hooks?
I'm down for Hooks since that is the latest and greatest. Plus it will save us a refactor later.
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.
In that case I would just point to React docs. They're going to have to learn anyways, right?
I suppose, but the less things people have to learn, the more people will contribute 🙃
Let's see what others think over the next 24 hours? I am interested to hear the opinions of others.
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
I recommend Functional Component + hooks. As @chrismgonzalez mentioned that it will save time of refactoring.
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).
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.
Hooks 100% of the way, I think they'll be a lot easier to pick up than most people think.
I think hooks is a good way to go with!
Sounds like it's pretty unanimous! :+1: Lets go hooks! ↩️
Hooks 👍
Functional Component + hooks, GitHub should add a polling button, is there a pull request to update the documentation regarding this? @timmyichen
Negative - feel free to create one!
Should we install this to facilitate future discussion of this kind? https://github.com/apps/polls @timmyichen @chrismgonzalez
/polls React Class Components 'Functional Components w/hooks'
We've resolved during our Nov 15 meeting:
Hooks are the norm. Classes can be used when needed.
Meeting Notes with more on the decision to use hooks. https://github.com/freeCodeCamp/chapter/wiki/Meeting-Notes-November-15,-2019