JavaScript React Basics Understanding State Create a Stateful Component

Josie Nagy
Josie Nagy
14,628 Points

Extends and super keywords

Here's a video that explains using extends and super() and the connection between them:

https://www.youtube.com/watch?v=CwAU1wYeHiM

I found it by accident after trying to understand why we needed to use super() in our class.

2 Answers

Allan Oloo
Allan Oloo
8,054 Points

So pretty much we need to have super in order to access properties and functions from the parent class we are inheriting from?