How does componentDidUpdate work in React and when should you use it? · ORA·tech