---
title: "Discussion on \"Why does React call your component function twice in development?\" | Hashnode"
description: "Discussion on \"Why does React call your component function twice in development?\". If you have added a console.log at the top of a component in a fresh Create React App or Next.js project, you have probably noticed it fires twice on the first render. Nothing is broken. This is Stric"
url: "https://hashnode.com/posts/why-does-react-call-your-component-function-twice-in-development/6aa17dd16c7cde76885dfea5"
---

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

Discussion

# [Why does React call your component function twice in development?](https://101beardo.hashnode.dev/why-does-react-call-your-component-function-twice-in-development?utm_source=hashnode&utm_medium=feed)

If you have added a console.log at the top of a component in a fresh Create React App or Next.js project, you have probably noticed it fires twice on the first render. Nothing is broken. This is Stric

Sep 9 · 3 min read · 101beardo.hashnode.dev  
Read the article

-   [#react-js](https://hashnode.com/tag/react-js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Tarun Sharma](https://hashnode.com/@101beardo)

@101beardo · Bengaluru, India

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

React.js Frontend Web Developer | Next.js Specialist

3 years of experience building production SaaS platforms, enterprise web apps, and cross-platform mobile apps using React.js, Next.js, and TypeScript.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
