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

Popular posts from this blog

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -