Title Template
LaunchDarkly - Senior Frontend Engineer - Technical Interview Round 1
Description Template:
Level: Senior Frontend Engineer
Education: Bachelors of Technology
Years of Experience: 8
Questions Asked:
React UI Coding
You have a counter and 2 buttons to increment the counter and reset the counter. Initially state is being set by mutating the state object directly but an extra variable is used to forcefully re-render the state making the state update work. You have to identify this and fix.
Also stop unnecessary re-render of child component by useCallback