---
title: "Discussion on \"Building a custom Hook\" | Hashnode"
description: "Discussion on \"Building a custom Hook\". Today I have been working on custom hooks, and I'd like to share with you the key principles I have learnt today.\nWhen building a custom hook, the file name doesn't matter. However, the function name must start with use to signal React that it is a c..."
url: "https://hashnode.com/posts/building-a-custom-hook/62fe7e21aa9d01fcb62f1022"
---

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

Discussion

# [Building a custom Hook](https://pietropiraino.hashnode.dev/building-a-custom-hook?utm_source=hashnode&utm_medium=feed)

Today I have been working on custom hooks, and I'd like to share with you the key principles I have learnt today. When building a custom hook, the file name doesn't matter. However, the function name must start with use to signal React that it is a c...

Aug 18, 2022 · 3 min read · pietropiraino.hashnode.dev  
Read the article

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

## Written by

[Pietro Piraino](https://hashnode.com/@PietroPiraino)

@PietroPiraino · Palermo, Italy

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

Front End Developer

🇮🇹 Italian Dev 🐈‍⬛ Cat Lover 🏋️‍♀️ Crossfit passionate Motivated, ambitious, and tenacious. I love new adventures, competition and learning. Under pressure, I give my best. I am satisfied if I do a good job and exceed expectations. I work well both in a team and alone so that I can easily adapt to all situations. I believe I can contribute in every context and compensate for my lack of experience with an incredible work ethic motivated by my constant desire for success.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
