'reactjs is it possible to get a notification after the DOM is updated?

I have a component which renders a list of up to a thousand elements.

It takes 3/5 seconds to update the DOM, I mean after the component event componentDidUpdate, which is called after the changes have been flushed to the DOM, it takes 3/5 seconds to actually see the DOM updated.

I would like to show a spinning cog or something, but I don't know how, because I don't know how to get notified when the DOM updated is complete.

Anyone knows?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source