React hooks can be used to add state to functional components, as well as replace the lifecycle methods that only class methods had available until now....