# Why Do We Write super(props)?

DevFeed: [Why Do We Write super(props)?](<https://devfeed.tech/articles/why-do-we-write-super-props-36210.md>)

Original publisher: [Read original article](<https://overreacted.io/why-do-we-write-super-props/>)

Published: 2018-11-30T00:00:00Z

Content type: article

Language: en

Sources: [Dan Abramov](<https://devfeed.tech/sources/dan-abramov.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [React](<https://devfeed.tech/topics/react.md>), [es6](<https://devfeed.tech/topics/es6.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [gotchas](<https://devfeed.tech/tags/gotchas.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

## AI overview

This article explains why React class components call super(props), covering JavaScript constructor rules, parent-class initialization, and how React assigns props even when they are not passed to super.

## Source excerpt

There's a twist at the end.