Hooks were introduces in React 16.8, hooks let us create function components in React with state and other React features. Usually for a React component to have state it should be created as a class component.
React 16.8 introduces the following basic hooks
React 16.8 introduces the following basic hooks