Questions:
What is Hook in React?
Interviewer in order to asses the state maintenance capability and to check your level of comfort with modern React development, might ask this question to the candidate.
Sample Answer:
Hooks are introduced in version React 16.8 and they make React even more powerful and clean. They are nothing but special methods that let you “hook into” React features like state, context and lifecycle methods without using classes. Examples include “useEffect”, “useContext” and custom hooks.