---
title: "Comment by Shad Mirza on \"Writing my first custom react hook - useOutsideClick\" | Hashnode"
description: "Great read. I think you should check out Rooks Library for hooks . It contains a lot of great hooks for all the common cases. Also, I wanna suggest that you use"
url: "https://hashnode.com/posts/writing-my-first-custom-react-hook-useoutsideclick/6099477221068818a5c643d4/comment/609a1be81ea29f2c341e4075"
---

[Discussion](https://hashnode.com/posts/writing-my-first-custom-react-hook-useoutsideclick/6099477221068818a5c643d4)

Comment [Writing my first custom react hook - useOutsideClick](https://hashnode.com/posts/writing-my-first-custom-react-hook-useoutsideclick/6099477221068818a5c643d4)

[Shad Mirza](https://hashnode.com/@iamshadmirza)

[May 11, 2021](https://hashnode.com/posts/writing-my-first-custom-react-hook-useoutsideclick/6099477221068818a5c643d4/comment/609a1be81ea29f2c341e4075)

Great read. I think you should check out [Rooks Library for hooks](https://react-hooks.org/). It contains a lot of great hooks for all the common cases.

Also, I wanna suggest that you use `//` for comments inside the code. It's more readable.

[Rajat Kapoor](https://hashnode.com/@rajatkapoor)

[May 11, 2021](https://hashnode.com/posts/writing-my-first-custom-react-hook-useoutsideclick/6099477221068818a5c643d4/comment/609a1be81ea29f2c341e4075#reply-609a23b221068818a5c652c0)

Thank you so much for the feedback. I have updated the code comments to use `//` instead of `#`

[Rajat Kapoor](https://hashnode.com/@rajatkapoor)

[May 11, 2021](https://hashnode.com/posts/writing-my-first-custom-react-hook-useoutsideclick/6099477221068818a5c643d4/comment/609a1be81ea29f2c341e4075#reply-609a24071ea29f2c341e4126)

`rooks` is amazing. I have been a big fan of both `rooks` and `react-use`. I created this one just as a way to learn how to create custom react hooks
