---
title: "Discussion on \"Difference between useEffect() and useLayoutEffect()\" | Hashnode"
description: "Discussion on \"Difference between useEffect() and useLayoutEffect()\". Render means computing the styles for each DOM node.\nPaint means content is displayed/updated on the screen.\nWith that in mind, let's see what the react docs say about these hooks.\nuseEffect(callback)\n\nThe function passed to the useEffect will run af..."
url: "https://hashnode.com/posts/difference-between-useeffect-and-uselayouteffect/5f56ec408239a922c5aece19"
---

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

Discussion

# [Difference between useEffect() and useLayoutEffect()](https://udit.hashnode.dev/difference-between-useeffect-and-uselayouteffect?utm_source=hashnode&utm_medium=feed)

Render means computing the styles for each DOM node. Paint means content is displayed/updated on the screen. With that in mind, let's see what the react docs say about these hooks. useEffect(callback) The function passed to the useEffect will run af...

Sep 8, 2020 · 1 min read · udit.hashnode.dev  
Read the article

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

## Written by

[Udit](https://hashnode.com/@udit)

@udit

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

Front-end developer

I am a frontend developer(React JS). Badminton and running ❤️️

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
