---
title: "Discussion on \"Configuring useReducer with redux-devtools and thunk actions.\" | Hashnode"
description: "Discussion on \"Configuring useReducer with redux-devtools and thunk actions.\". Creating a custom React useReducer hook to support passing functions as actions.\n\nimport { useReducer } from 'react'\n\nfunction useReducerWithThunk(reducer, initialState) {\n  const [state, dispatch] = useReducer(reducer, initialState);\n\n  let customDi..."
url: "https://hashnode.com/posts/configuring-usereducer-with-redux-devtools-and-thunk-actions/5fcfbdda97cd0b27f364b44f"
---

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

Discussion

# [Configuring useReducer with redux-devtools and thunk actions.](https://blog.nishan.dev/configuring-usereducer-with-redux-devtools-and-thunk-actions?utm_source=hashnode&utm_medium=feed)

Creating a custom React useReducer hook to support passing functions as actions. import { useReducer } from 'react' function useReducerWithThunk(reducer, initialState) { const \[state, dispatch\] = useReducer(reducer, initialState); let customDi...

May 30, 2019 · 5 min read · blog.nishan.dev  
Read the article

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

## Written by

[Nishan Bende](https://hashnode.com/@nishan)

@nishan

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
