---
title: "Discussion on \"Manage complex states with useReducer\" | Hashnode"
description: "Discussion on \"Manage complex states with useReducer\". When you started learning React, 🧠 you surely got to know useState for managing the state of your functional components. ⚛️ But did you know that there exists another hook called useReducer that does the same thing? 😱\nHi! I'm Ernesto, and in this p..."
url: "https://hashnode.com/posts/manage-complex-states-with-usereducer/5fd774aaae523508b1da6ccb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Manage complex states with useReducer](https://ernestoangulo.hashnode.dev/manage-complex-states-with-usereducer?utm_source=hashnode&utm_medium=feed)

When you started learning React, 🧠 you surely got to know useState for managing the state of your functional components. ⚛️ But did you know that there exists another hook called useReducer that does the same thing? 😱 Hi! I'm Ernesto, and in this p...

Dec 14, 2020 · 9 min read · ernestoangulo.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Ernesto Angulo](https://hashnode.com/@netosnos)

@netosnos · Perú

  
[View profile](https://hashnode.com/@netosnos)

God does not make the world this way, we do.

I'm just someone who likes code and design.

## Responses 2

Markdown supported · ⌘↵ to post

[Pritam Patil](https://hashnode.com/@pritamH2SO4)

[Dec 17, 2020](https://hashnode.com/posts/manage-complex-states-with-usereducer/5fd774aaae523508b1da6ccb/comment/5fdb084cb78ac62dff809033)

Nice article. I was wondering if there's a tool like we have for Redux (Redux DevTools) that shows dispatched actions and the payload if we use 'useReducer'. Had been using 'useReducer' for sometime but didn't come across such tool.

[Ernesto Angulo](https://hashnode.com/@netosnos)

[Dec 17, 2020](https://hashnode.com/posts/manage-complex-states-with-usereducer/5fd774aaae523508b1da6ccb/comment/5fdb084cb78ac62dff809033#reply-5fdb65d6b78ac62dff809d0d)

Hi Pritam, thanks for reading! 😀 As far as I know, you can watch the payloads of useReducer inside React DevTools.

[Pritam Patil](https://hashnode.com/@pritamH2SO4)

[Dec 20, 2020](https://hashnode.com/posts/manage-complex-states-with-usereducer/5fd774aaae523508b1da6ccb/comment/5fdb084cb78ac62dff809033#reply-5fdedf0db78ac62dff80d401)

I think it only shows the state that you have with reducer key in React DevTools and not the intermediate actions and their payloads. I was more interested in seeing the state updates the redux way. [Ernesto Angulo](https://hashnode.com/@netosym)

[Ernesto Angulo](https://hashnode.com/@netosnos)

[Dec 20, 2020](https://hashnode.com/posts/manage-complex-states-with-usereducer/5fd774aaae523508b1da6ccb/comment/5fdb084cb78ac62dff809033#reply-5fdfe2feb78ac62dff80e4fa)

You are right, Redux DevTools give you more. That is why it is awesome. 😁
