A

Admin • 833.24K Points
Coach

Q. What is the purpose of the useReducer hook in React?

  • (A) To manage complex state logic with reducers
  • (B) To perform side effects
  • (C) To memoize functions
  • (D) To access context
  • Correct Answer - Option(A)
  • Views: 29
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

useReducer is similar to Redux reducers and is useful for managing complex state.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.