---
title: "Discussion on \"This Pattern Will Make Your React Hooks Cleaner\" | Hashnode"
description: "Discussion on \"This Pattern Will Make Your React Hooks Cleaner\". When we build a custom hook with complex logic in React, we either return an array or an object that has state and logic"
url: "https://hashnode.com/posts/this-pattern-will-make-your-react-hooks-cleaner/6246ca0216cdedfe9f7cb040"
---

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

Discussion

# [This Pattern Will Make Your React Hooks Cleaner](https://blog.braincuber.com/this-pattern-will-make-your-react-hooks-cleaner?utm_source=hashnode&utm_medium=feed)

When we build a custom hook with complex logic in React, we either return an array or an object that has state and logic

Apr 1, 2022 · 4 min read · blog.braincuber.com  
Read the article

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

## Written by

[Braincuber Technologies](https://hashnode.com/@braincuber-technologies)

@braincuber-technologies · india

  
[View profile](https://hashnode.com/@braincuber-technologies)

Founder of Braincuber Technologies

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
