Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
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

Closed

Description

@timmyichen

Title says it all. What's our opinion on using class components vs functional components with hooks?

Activity

  1. chrismgonzalez commented on Oct 22, 2019

    @chrismgonzalez
    Contributor

    I'm down for Hooks since that is the latest and greatest. Plus it will save us a refactor later.

  2. timmyichen commented on Oct 22, 2019

    @timmyichen
    ContributorAuthor

    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.

  3. chrismgonzalez commented on Oct 22, 2019

    @chrismgonzalez
    Contributor

    In that case I would just point to React docs. They're going to have to learn anyways, right?

  4. timmyichen commented on Oct 22, 2019

    @timmyichen
    ContributorAuthor

    I suppose, but the less things people have to learn, the more people will contribute 🙃

  5. chrismgonzalez commented on Oct 22, 2019

    @chrismgonzalez
    Contributor

    Let's see what others think over the next 24 hours? I am interested to hear the opinions of others.

  6. Abott1222 commented on Oct 22, 2019

    @Abott1222

    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

  7. imVinayPandya commented on Oct 22, 2019

    @imVinayPandya

    I recommend Functional Component + hooks. As @chrismgonzalez mentioned that it will save time of refactoring.

  8. abidRahim commented on Oct 22, 2019

    @abidRahim

    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).

  9. rinajhinjhina commented on Oct 22, 2019

    @rinajhinjhina

    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.

  10. nulfrost commented on Oct 22, 2019

    @nulfrost

    Hooks 100% of the way, I think they'll be a lot easier to pick up than most people think.

  11. vardhanapoorv commented on Oct 22, 2019

    @vardhanapoorv

    I think hooks is a good way to go with!

  12. timmyichen commented on Oct 22, 2019

    @timmyichen
    ContributorAuthor

    Sounds like it's pretty unanimous! 👍 Lets go hooks! ↩️

  13. xarielx commented on Oct 23, 2019

    @xarielx
    Contributor

    Functional Component + hooks, GitHub should add a polling button, is there a pull request to update the documentation regarding this? @timmyichen

  14. timmyichen commented on Oct 23, 2019

    @timmyichen
    ContributorAuthor

    Negative - feel free to create one!

  15. xarielx commented on Oct 23, 2019

    @xarielx
    Contributor
  16. QuincyLarson commented on Nov 15, 2019

    @QuincyLarson
    Contributor

    /polls React Class Components 'Functional Components w/hooks'

  17. changed the title [-]React Class Components vs Functional Components w/hooks[/-] [+]/polls React Class Components 'Functional Components w/hooks'[/+] on Nov 15, 2019
  18. changed the title [-]/polls React Class Components 'Functional Components w/hooks'[/-] [+]React Class Components VS Functional Components w/hooks[/+] on Nov 15, 2019
  19. QuincyLarson commented on Nov 15, 2019

    @QuincyLarson
    Contributor

    We've resolved during our Nov 15 meeting:

    Hooks are the norm. Classes can be used when needed.

  20. allella commented on Nov 16, 2019

    @allella
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions