Explain the useState() Hook The useState Hook is a store that enables the use of state variables in functional components. You can pass the initial state to this function, and it will return a variable containing the current state value (not necessarily the initial state) and another function to update this value.
Explain the useEffect() Hook The useEffect Hook allows you to perform side effects in your components like data fetching, direct DOM updates, timers like setTimeout(), and much more. This hook accepts two arguments: the callback and the dependencies, which allow you to control when the side effect is executed. Note: The second argument is optional