---
title: "Discussion on \"useReducer in react: Everything you need to know\" | Hashnode"
description: "Discussion on \"useReducer in react: Everything you need to know\". prerequisites: \n\nGrasp of reduce method in JavaScript and\nuseState in react\n\nFor reduce method, I recommend you to read my blog here: https://rajatgupta.net/reduce-method-in-javascript\nOk, Let's get started.\nThe useReducer Hook is similar to the useS..."
url: "https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619"
---

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

Discussion

# [useReducer in react: Everything you need to know](https://rajatgupta.net/usereducer-in-react-everything-you-need-to-know?utm_source=hashnode&utm_medium=feed)

prerequisites: Grasp of reduce method in JavaScript and useState in react For reduce method, I recommend you to read my blog here: https://rajatgupta.net/reduce-method-in-javascript Ok, Let's get started. The useReducer Hook is similar to the useS...

Mar 13, 2022 · 8 min read · rajatgupta.net  
Read the article

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

## Written by

[Rajat Gupta](https://hashnode.com/@therajatg)

@therajatg · Rajasthan, India

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

I write about CSS, JavaScript, React and everything in between.

Hi, I am rajat. I write about react, javascript or css 4 times a week. One more thing: I would love to work as a frontend engineer (focused on ReactJS). If you have any such role, ping me at dguptarajat@gmail.com.

## Responses 4

Markdown supported · ⌘↵ to post

[Anand Baraik](https://hashnode.com/@anandbaraik)

[Jun 16, 2023](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/648c1531e2423ece2c510f7a)

A good read!

[Zummie](https://hashnode.com/@ZumTheZazaKing)

[Mar 14, 2022](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/622edf7c38e0a0d99d32e538)

Thanks! This was very helpful

[Wakeel Kehinde](https://hashnode.com/@t-official)

[Mar 14, 2022](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/622ec6abdf08b9b82341a248)

You're a beast in breaking down stuff man!!!! Please write on useSelector, useMemo and useCallback. Thanks in bunch mate!

[Rajat Gupta](https://hashnode.com/@therajatg)

[Mar 14, 2022](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/622ec6abdf08b9b82341a248#reply-622ecaf1df08b9b82341a2b8)

Glad you liked it. Will soon write about other hooks too.

[Wakeel Kehinde](https://hashnode.com/@t-official)

[Mar 14, 2022](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/622ec6abdf08b9b82341a248#reply-622eeca6df08b9b82341a6af)

I am really looking forward to that. Again, I appreciate the time you took to put all of these pieces together! Please, Keep it up, I'm a fan💥. [Rajat Gupta](https://hashnode.com/@therajatg)

[Shraddha Muley](https://hashnode.com/@shraddhaaa)

[Mar 14, 2022](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/622ec08ddf08b9b82341a1dc)

Very nicely written Rajat! Really Helpful.

[Rajat Gupta](https://hashnode.com/@therajatg)

[Mar 14, 2022](https://hashnode.com/posts/usereducer-in-react-everything-you-need-to-know/622e4199197586d5f925c619/comment/622ec08ddf08b9b82341a1dc#reply-622ecaaddf08b9b82341a2a7)

Thanks Shraddha!
