HCLTech Interview Question

Difference between functional and class components?