I have been reading the React docs and came across shouldComponentUpdate()
. My understanding is that everytime setState()
is called, a re-render of
I dont know if I understood your question correctly but react only re renders when there is difference between virtual dom and real dom.
And as Jyothi mentioned in his answer that render method will be called irrespective of the value passed in the set state function but rerendering will depend on what this render method returns.