reactjs - Do I have to call super.componentDidUpdate in React? -
in subclass of react.component
, have call super.componentdidupdate
componentdidupdate
method? or done automatically?
(i trying call there error message cannot read property call
of undefined
)
you not, can see in base class extending, here, has no componentdidupdate
, calling super method doesn't make sense.
instead of having method present, , have nothing, react instead checks if method exists. can see here.
Comments
Post a Comment