Checking the life cycle methodes for the Functinal component.