---
title: "Discussion on \"How to perform async operation in useEffect\" | Hashnode"
description: "Discussion on \"How to perform async operation in useEffect\". use IIFEs to execute asynchronous code in the hook"
url: "https://hashnode.com/posts/how-to-perform-async-operation-in-useeffect/640a7f353fdabe31c6fa4cbe"
---

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

Discussion

# [How to perform async operation in useEffect](https://slytherindor.hashnode.dev/how-to-perform-async-operation-in-useeffect?utm_source=hashnode&utm_medium=feed)

use IIFEs to execute asynchronous code in the hook

Mar 3, 2023 · 3 min read · slytherindor.hashnode.dev  
Updated Mar 14, 2023  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Shubhanshu](https://hashnode.com/@slytherindor)

@slytherindor · Ottawa

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

build -> fail -> iterate -> succeed

here to build things

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
