Pregunta de entrevista de Powerweave

Asked to design a React component with utilizing the react hooks such as useState and useEffect, to implement the side-effect on data change and updates in UI