This is the sequence of tasks as I understand:
When I make a change to the DOM like titleRef.current.innerText = 'Hello', the change seems to instantaneous on the browser. There seems to be no difference between a DOM update and a browser paint.
So, how does React split a DOM update from a browser paint? Looked at the source code but could not understand much.
Here is the lifecycle of a react component:
FlowChart Link: https://github.com/donavon/hook-flow
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With