---
title: "Discussion on \"Use generators for magic in React\" | Hashnode"
description: "Discussion on \"Use generators for magic in React\". Let me put it straight: you're overdosing on hooks. Even your IDs and keys are living as state in your React app. useState hooks trigger a side effect of updating the virtual DOM whenever the state changes. Storing irrelevant data as state is bad for..."
url: "https://hashnode.com/posts/use-generators-for-magic-in-react/676bf40d68aff6dcc43ef36e"
---

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

Discussion

# [Use generators for magic in React](https://ashishk.hashnode.dev/use-generators-for-magic-in-react?utm_source=hashnode&utm_medium=feed)

Let me put it straight: you're overdosing on hooks. Even your IDs and keys are living as state in your React app. useState hooks trigger a side effect of updating the virtual DOM whenever the state changes. Storing irrelevant data as state is bad for...

Dec 25, 2024 · 5 min read · ashishk.hashnode.dev  
Read the article

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

## Written by

[Ashish Khare](https://hashnode.com/@Ashishk1331)

@Ashishk1331 · India

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

Pilots don't lie.

We'll discuss more over a cup of coffee.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
