How to use ComponentDidUpdate?