Cognizant interview question

Explain useState and useEffect Hooks in React