---
title: "Discussion on \"useLayoutEffect - when to use it?\" | Hashnode"
description: "Discussion on \"useLayoutEffect - when to use it?\". I recently attended an interview for React JS and the one question that I answered without actually ever implementing it was about the useLayoutEffect hook. I have heard about it from my colleague who"
url: "https://hashnode.com/posts/uselayouteffect-when-to-use-it/6576ba79bf7896447aa22cd5"
---

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

Discussion

# [useLayoutEffect - when to use it?](https://www.shravaniroy.in/uselayouteffect-when-to-use-it?utm_source=hashnode&utm_medium=feed)

I recently attended an interview for React JS and the one question that I answered without actually ever implementing it was about the useLayoutEffect hook. I have heard about it from my colleague who

Nov 12, 2023 · 4 min read · shravaniroy.in  
Updated Nov 2  
Read the article

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

## Written by

[Shravani Thirunagari](https://hashnode.com/@ShravaniRoy)

@ShravaniRoy · India

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

Software Developer

Hi there, I am a product developer primarily skilled in Java(SpringBoot), Node JS, and ES6 (React JS). I have around 7 years of experience in delivering end-to-end products. My expertise lies in implementing optimized solutions using relevant tech stacks. As part of this, I like to explore and learn new technologies. I am a curious student.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
