Saviynt Interview Question

Migrate a simple counter code which is written using class component to functional component.