---
title: "Discussion on \"Understanding Hooks - useState and useEffect basics\" | Hashnode"
description: "Discussion on \"Understanding Hooks - useState and useEffect basics\". Before Hooks were introduced in React, if you wanted a stateful component, Class ones were the only way to go... to go and write a lot of code that is less readable, not that easy to follow.\nSo, if you began to learn React recently or if you've alrea..."
url: "https://hashnode.com/posts/understanding-hooks-usestate-and-useeffect-basics/615ce02747216d36c40fe7f6"
---

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

Discussion

# [Understanding Hooks - useState and useEffect basics](https://blog.juanmendozadev.xyz/understanding-hooks-usestate-and-useeffect-basics?utm_source=hashnode&utm_medium=feed)

Before Hooks were introduced in React, if you wanted a stateful component, Class ones were the only way to go... to go and write a lot of code that is less readable, not that easy to follow. So, if you began to learn React recently or if you've alrea...

Oct 5, 2021 · 9 min read · blog.juanmendozadev.xyz  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Juan Sebastián Mendoza](https://hashnode.com/@JuanMendozaDev)

@JuanMendozaDev · Colombia

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

Software Developer | JavaScript | React | FrontEnd Developer

I'm a passionate developer who's sharing his journey on becoming a better developer, as well as teaching what I learn through articles.

## Responses 1

Markdown supported · ⌘↵ to post

[Daniela](https://hashnode.com/@danielapaez)

[Oct 6, 2021](https://hashnode.com/posts/understanding-hooks-usestate-and-useeffect-basics/615ce02747216d36c40fe7f6/comment/615cee4d47216d36c40fe896)

Excellent job!
