---
title: "Discussion on \"React Hooks & why they make life so much easier\" | Hashnode"
description: "Discussion on \"React Hooks & why they make life so much easier\". [32]\nuseState\nIt manages the state in a functional component.\nFor example, toggle visibility of text.\nconst [visible, setVisible] = useState(false);\nonClick = { () => setVisible(!visible)};\n\nuseEffect\nReact has a new tool called the useEffect hook. I..."
url: "https://hashnode.com/posts/react-hooks-why-they-make-life-so-much-easier/67b180ed2747af1fbdbe1bdc"
---

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

Discussion

# [React Hooks & why they make life so much easier](https://pranavbawg.hashnode.dev/react-hooks-why-they-make-life-so-much-easier?utm_source=hashnode&utm_medium=feed)

\[32\] useState It manages the state in a functional component. For example, toggle visibility of text. const \[visible, setVisible\] = useState(false); onClick = { () => setVisible(!visible)}; useEffect React has a new tool called the useEffect hook. I...

Feb 16, 2025 · 2 min read · pranavbawg.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-js](https://hashnode.com/tag/react-js)
-   [#react-hooks](https://hashnode.com/tag/react-hooks)
-   [#usestate](https://hashnode.com/tag/usestate)
-   [#useeffect](https://hashnode.com/tag/useeffect)
-   [#usecontext](https://hashnode.com/tag/usecontext)
-   [#usereducer](https://hashnode.com/tag/usereducer)
-   [#useref](https://hashnode.com/tag/useref)
-   [#usecallback](https://hashnode.com/tag/usecallback)
-   [#usetransition](https://hashnode.com/tag/usetransition)
-   [#useid](https://hashnode.com/tag/useid)

## Written by

[Pranav Bawgikar](https://hashnode.com/@pranavbawg)

@pranavbawg · Bengaluru, India

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

System Engineer @ Nuclei

Hiya 👋 I'm Pranav. I'm a recent computer science grad who loves punching keys, napping while coding and lifting weights. This space is a collection of my journey of active learning from blogs, books and papers.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
