HCLTech Interview Question

Hooks based in React component