Front end Test
Front end Test
Scenario-Based Questions:
Scenario 1: You are developing a single-page application using React, and your team wants to
implement a feature where users can increase or decrease a counter. The counter should update
when user click plus button and decreases when user clicks minus button. How would you
implement this feature using React hooks and state management? Provide a brief explanation and
a sample code snippet.
Scenario 2: A web page you are working on has performance issues. Users report slow
rendering times and unresponsive UI, especially when handling a list with thousands of items.
What steps would you take to optimize and debug the issues using Chrome Dev tools. Mention
the specific tabs of Chrome wherein you will be most interested. Additionally, how would
implement memoization to improve performance.