Constructor(props) and super(props) VS constructor() and super()


(Mr Bra1nwash) #1

I know that this question was asked many times, but it is still doesn’t clear. Many people just said:

Pass props to constructor if you want to access this.props there

one more example of the answer
Oficial doc says Class components should always call the base constructor with props
But if we do not pass props to constructor, we will still have this.props everywhere exept constructor.
Also from source code of Create Element you can see that createElement adds props regardless if you use super(props)
So the main question is: Why React official doc says:

Class components should always call the base constructor with props

if it is not really necessary? So current React doc is wrong or what? There is no need to call constructor always with props ?