---
title: "Comment by Shrijin on \"useEffect Hook in React\" | Hashnode"
description: "In React18 strict mode, when the dependency is an empty [] , the function will render twice"
url: "https://hashnode.com/posts/useeffect-hook-in-react/625bf72352fb7bd53380ff0c/comment/6260d1447019274627fd86b2"
---

[Discussion](https://hashnode.com/posts/useeffect-hook-in-react/625bf72352fb7bd53380ff0c)

Comment [useEffect Hook in React](https://hashnode.com/posts/useeffect-hook-in-react/625bf72352fb7bd53380ff0c)

[Shrijin](https://hashnode.com/@Shrijin)

[Apr 21, 2022](https://hashnode.com/posts/useeffect-hook-in-react/625bf72352fb7bd53380ff0c/comment/6260d1447019274627fd86b2)

In React18 strict mode, when the dependency is an empty \[\] , the function will render twice
