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 -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -