---
title: "Discussion on \"What the heck is useReducer()?\" | Hashnode"
description: "Discussion on \"What the heck is useReducer()?\". Prerequisutes:\n- Basic understanding of JavaScript\n- Basic understanding of array functions\n- Basic understading of React\n- Basic understading of hooks in react\nIntroduction\nIn simple words, useReducer is a hook used for state management in react. \nD..."
url: "https://hashnode.com/posts/what-the-heck-is-usereducer/629b2c5e5c349e3289ef0b75"
---

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

Discussion

# [What the heck is useReducer()?](https://ashifkhan.hashnode.dev/what-the-heck-is-usereducer?utm_source=hashnode&utm_medium=feed)

Prerequisutes: - Basic understanding of JavaScript - Basic understanding of array functions - Basic understading of React - Basic understading of hooks in react Introduction In simple words, useReducer is a hook used for state management in react. D...

Jun 4, 2022 · 7 min read · ashifkhan.hashnode.dev  
Read the article

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

## Written by

[Ashif Khan](https://hashnode.com/@ashifkhan)

@ashifkhan · Delhi

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

Why?

## Responses 2

Markdown supported · ⌘↵ to post

[Charae Eh Sin](https://hashnode.com/@CharaeKeow)

[Jun 4, 2022](https://hashnode.com/posts/what-the-heck-is-usereducer/629b2c5e5c349e3289ef0b75/comment/629bd246cc5e93351386687b)

Thanks for this! The hooks that I mostly use are `useState`, `useEffect`, and `useContext`. I've went through the docs on more complex hooks like `useReducer` but still haven't fully grasp most of them. I think now I get the idea of `useReducer` and it does look like Redux (with the dispatch and all). Perhaps I'll try to use it next time. Perhaps it will seem less scary with a bit of practice 😂

[Ashif Khan](https://hashnode.com/@ashifkhan)

[Jun 8, 2022](https://hashnode.com/posts/what-the-heck-is-usereducer/629b2c5e5c349e3289ef0b75/comment/629bd246cc5e93351386687b#reply-62a0ddc968ad9b73958af64a)

All the best. Practice make you perfect. Keep learning. Keep growing.

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[Jun 4, 2022](https://hashnode.com/posts/what-the-heck-is-usereducer/629b2c5e5c349e3289ef0b75/comment/629b5fd27ab2e32eed5b918f)

Thanks for explanation 👍 [Ashif Khan](https://hashnode.com/@ashifkhan)
