---
title: "Discussion on \"What does happen when react re-renders a component?\" | Hashnode"
description: "Discussion on \"What does happen when react re-renders a component?\". Lets take an example of using useState:\nimport { useState } from 'react';\n\nexport default function Counter() {\n  const [count, setCount] = useState(0);\n\n  function handleClick() {\n    setCount(count + 1);\n  }\n\n  return (\n    <button onClick={handleCl..."
url: "https://hashnode.com/posts/what-does-happen-when-react-re-renders-a-component/6920cb0c8c6e042981f23d88"
---

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

Discussion

# [What does happen when react re-renders a component?](https://bikash8848.hashnode.dev/what-does-happen-when-react-re-renders-a-component?utm_source=hashnode&utm_medium=feed)

Lets take an example of using useState: import { useState } from 'react'; export default function Counter() { const \[count, setCount\] = useState(0); function handleClick() { setCount(count + 1); } return ( <button onClick={handleCl...

Nov 21, 2025 · 2 min read · bikash8848.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#rendering](https://hashnode.com/tag/rendering)
-   [#reactcomponent](https://hashnode.com/tag/reactcomponent)

## Written by

[Bikash Mainali](https://hashnode.com/@bikash8848)

@bikash8848

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

Software Engineer

Experienced Java/JavaScript full-stack developer over 6 years of extensive expertise serving key role on elite technical teams developing enterprise software for healthcare, apple ad-platform, banking, and e-commerce. Adaptable problem-solver with high levels of skill in Groovy, Java, Spring, Spring Boot, Hibernate, JavaScript, TypeScript, Angular, Node, Express, React, MongoDB, IBM DB2, Oracle, PL/SQL, Docker, Kubernetes, CI/CD pipelines, AWS, Micro-service and Agile/Scrum. Strong technical skills paired with business-savvy UI design expertise. Personable team player with experience collaborating with diverse cross-functional teams.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
