New Jan 17, 2026

Class based component constructor and supper() [closed]

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View Class based component constructor and supper() [closed] on stackoverflow.com

Why do we use super() and why is it necessary if I am not using it react is throwing an error. And why should it only be written in constructor??

Scroll to top