---
title: "Discussion on \"Custom Hooks\" | Hashnode"
description: "Discussion on \"Custom Hooks\". In React, when we notice lines of code repeating, it's often a sign that we should refactor them into a function. Similarly, React's standard library doesn't cover every use case, so we can create our own functions, just like we can create our own cu..."
url: "https://hashnode.com/posts/custom-hooks/670a684c562fa3cfa0123484"
---

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

Discussion

# [Custom Hooks](https://aaks.hashnode.dev/custom-hooks?utm_source=hashnode&utm_medium=feed)

In React, when we notice lines of code repeating, it's often a sign that we should refactor them into a function. Similarly, React's standard library doesn't cover every use case, so we can create our own functions, just like we can create our own cu...

Oct 12, 2024 · 4 min read · aaks.hashnode.dev  
Read the article

-   [#custom-hooks](https://hashnode.com/tag/custom-hooks)
-   [#react-custom-hooks](https://hashnode.com/tag/react-custom-hooks)

## Written by

[Aaks](https://hashnode.com/@aaks)

@aaks

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

stepping into the programming world

## Responses 1

Markdown supported · ⌘↵ to post

[Anubhav Adhikari](https://hashnode.com/@anubhav1206)

[Oct 13, 2024](https://hashnode.com/posts/custom-hooks/670a684c562fa3cfa0123484/comment/670b7f5e9be960fb606b3434)

Very nicely explained.

[Aaks](https://hashnode.com/@aaks)

[Oct 13, 2024](https://hashnode.com/posts/custom-hooks/670a684c562fa3cfa0123484/comment/670b7f5e9be960fb606b3434#reply-670b8ca5564f9edcba46ae79)

Thank you!
