Full life cycle of react component for reactclass snippet