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

javascript - oscilloscope of speaker input stops rendering after a few seconds -

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

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -