---
title: "Comment by Tawaliou ALAO on \"React Design Patterns\" | Hashnode"
description: "Cool article ! But: I think it&#39;s not good to have an await for async operations on useEffect like you dit it. May be wrap it in an async function put inside"
url: "https://hashnode.com/posts/react-design-patterns/64aae0a17e1235eee5c8a199/comment/64b7b163f505b3c66fa3e24e"
---

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

Comment [React Design Patterns](https://hashnode.com/posts/react-design-patterns/64aae0a17e1235eee5c8a199)

[Tawaliou ALAO](https://hashnode.com/@Tawaliou)

[Jul 19, 2023](https://hashnode.com/posts/react-design-patterns/64aae0a17e1235eee5c8a199/comment/64b7b163f505b3c66fa3e24e)

Cool article ! But:

-   I think it's not good to have an await for async operations on useEffect like you dit it. May be wrap it in an async function put inside the useEffect
-   I think you could avoid to mess class with function even if it's possible. since the last release of React, it's recommended to use functional component. thanks
