---
title: "Discussion on \"Where do you initialize state in React Component?\" | Hashnode"
description: "Discussion on \"Where do you initialize state in React Component?\". Functional Components are super cool. Though, Classical components are still used & so is the conventional state in those.\nState initialization is a very common scenario while developing the components. \nBut where do you initialize your components’ s..."
url: "https://hashnode.com/posts/where-do-you-initialize-state-in-react-component/5fa3c2af47631a19e811ed4c"
---

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

Discussion

# [Where do you initialize state in React Component?](https://blog.pankaj.pro/where-do-you-initialize-state-in-react-component?utm_source=hashnode&utm_medium=feed)

Functional Components are super cool. Though, Classical components are still used & so is the conventional state in those. State initialization is a very common scenario while developing the components. But where do you initialize your components’ s...

Nov 5, 2020 · 4 min read · blog.pankaj.pro  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#optimization](https://hashnode.com/tag/optimization)

## Written by

[Pankaj Patel](https://hashnode.com/@pankajpatel)

@pankajpatel · Berlin

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

Blog, Tech, Photography etc.

I am developer from India currently based in Berlin, Germany. I am very interested in Design, though I don't design 😉 I take care of it while making my apps. Photography, videography and having random conversation over beer are my activities of spare time. Timelapses and hyperlapses make me wonder all the time 😊

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
