setState(updater[, callback])- When is this setState callback called !
All react documentation says about this callback is:
The second parameter to setState() is an optional callback function that will be executed once setState is completed and the component is re-rendered. Generally we recommend…