add componentDidEnter hook for transitiongroup items