---
title: "Discussion on \"React bad setState() call\" | Hashnode"
description: "Discussion on \"React bad setState() call\". Warning: Cannot update a component (`App`) while rendering a different component (`Testing`). To locate the bad setState() call inside Testing, follow the s"
url: "https://hashnode.com/posts/react-bad-setstate-call/63eb7a6a23674289e225d873"
---

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

Discussion

# [React bad setState() call](https://nidhisharma.hashnode.dev/react-bad-setstate-call?utm_source=hashnode&utm_medium=feed)

Warning: Cannot update a component (\`App\`) while rendering a different component (\`Testing\`). To locate the bad setState() call inside Testing, follow the s

Feb 14, 2023 · 2 min read · nidhisharma.hashnode.dev  
Read the article

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

## Written by

[nidhi sharma](https://hashnode.com/@nidhisharma)

@nidhisharma · India,UP

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

Frontend Developer

Hi there! My name is Nidhi sharma and I am a frontend developer currently working as an intern. I have a strong passion for creating user-friendly and visually appealing websites and applications, and I am always looking to learn and improve my skills. As a frontend developer, I use a variety of programming languages and tools, such as HTML, CSS, and JavaScript, React, to bring my designs to life and make them interactive and responsive. I am excited to have the opportunity to learn from and contribute to a team of experienced developers. I am eager to take on new challenges and to apply my skills and knowledge to real-world projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
