Skip to content

Managing state on our React Apps #18

Description

@guilhermebruzzi

What is to be discussed?

When the app is little to medium size:
Should we use hooks with useReducer or even only a state being passed from a root component by props to the children or even by context?

For large apps:
Should we use redux and it's middlewares?

For apps using graphql:
Should we only use apollo with it apollo-link-state

Describe the solution you'd like

I think the solution depends on the app. I personally like redux a lot and would still use it for medium and large apps (didn't mixed it up with apollo client to really understand the problems with that).

But for small apps would only use hooks but again:
Should we:

  • Use state on root component and pass by props
  • Use state on root component and pass values by context
  • Use useReducer on root component and pass by props
  • Use useReducer on root component and pass dispatch as context

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions