I\'m new to React. I have an . Before it is destroyed or removed I want to call some clean-up code. But I\'m not sure how to call that method before d