---
title: "Discussion on \"super() / super(props) in React Class Components and Why?\" | Hashnode"
description: "Discussion on \"super() / super(props) in React Class Components and Why?\". If you have this question, then you should, first of all, visit the basics of inheritance in Javascript and get the answer.\nLet's look at the example\nCreate a parent class with a constructor and a few functions.\nclass parent{\n  val = 4;\n  constructor..."
url: "https://hashnode.com/posts/super-superprops-in-react-class-components-and-why/64e1b3093b40a0c4d07fa893"
---

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

Discussion

# [super() / super(props) in React Class Components and Why?](https://0xbansal.hashnode.dev/super-superprops-in-react-class-components-and-why?utm_source=hashnode&utm_medium=feed)

If you have this question, then you should, first of all, visit the basics of inheritance in Javascript and get the answer. Let's look at the example Create a parent class with a constructor and a few functions. class parent{ val = 4; constructor...

Aug 20, 2023 · 2 min read · 0xbansal.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#class-based-components](https://hashnode.com/tag/class-based-components)
-   [#Super](https://hashnode.com/tag/Super)
-   [#super-props](https://hashnode.com/tag/super-props)

## Written by

[Akash Bansal](https://hashnode.com/@akabansal)

@akabansal

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
