---
title: "Comment by Ndeye Fatou Diop on \"React Design Patterns ⭐\" | Hashnode"
description: "Really like the examples ! So many of them ! Small thing: in your first example, I wouldn’t use a hook and instead just a normal function because hooks cannot b"
url: "https://hashnode.com/posts/react-design-patterns/65aa8cabea55edf70cb636bd/comment/65abd756bf9e48ab6f9c2f86"
---

[Discussion](https://hashnode.com/posts/react-design-patterns/65aa8cabea55edf70cb636bd)

Comment [React Design Patterns ⭐](https://hashnode.com/posts/react-design-patterns/65aa8cabea55edf70cb636bd)

[Ndeye Fatou Diop](https://hashnode.com/@fatou)

[Jan 20, 2024](https://hashnode.com/posts/react-design-patterns/65aa8cabea55edf70cb636bd/comment/65abd756bf9e48ab6f9c2f86)

Really like the examples ! So many of them ! Small thing: in your first example, I wouldn’t use a hook and instead just a normal function because hooks cannot be reused outside of react components or other hooks 😉

[Nishit Bariya](https://hashnode.com/@Nishitbaria)

[Jan 20, 2024](https://hashnode.com/posts/react-design-patterns/65aa8cabea55edf70cb636bd/comment/65abd756bf9e48ab6f9c2f86#reply-65abd862d3f198f97e9617d1)

You are absolutely correct. Since hooks cannot be reused outside of React components or other hooks, using a normal function would be more appropriate in this case. Thank you for correct it 🙌

[Ndeye Fatou Diop](https://hashnode.com/@fatou)

[Jan 20, 2024](https://hashnode.com/posts/react-design-patterns/65aa8cabea55edf70cb636bd/comment/65abd756bf9e48ab6f9c2f86#reply-65ac04be31d4244068a1492f)

[Nishit Bariya](https://hashnode.com/@Nishitbaria) Unfortunately, I learned it the hard way myself 🥲
