Best practices in ReactJs for State Management

What's considered the best practice in the React v16.x or later for state management?

  • Using Functional components and Hooks
  • Using Class components & this.state (setState)
  • Using Redux
  • Comment if there's any more approach

Comments (1)

Omowunmi Sogunle's photo

Hi ,

Context API, Mob X are also used to manage states in React.

It really depends on your personal preference and the project you're working on to choose the best state management approach that works for you.

Hope this helps.