Main Navigation
Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.
Practice mock interviews or book a 1:1 call for career guidance, resume reviews, and more.
AI interview prep powered by real interview data.
Connect with us on social media
Interview experiences & questions tagged Hooks
Create a custom React hook that synchronizes a state value with localStorage. The hook should: - Read the initial value from localStorage - Keep React state and localStorage in sync - Return the current value and a setter function - Handle changes to the storage key correctly.
Implement a custom `useDebounce` hook from scratch for a React application.
Why should hooks not be defined inside conditional statements like if? Explain the implications this has on component behavior.
List all the hooks you are aware of in React and explain the difference between 'useRef' and 'useState'.
Implement a timer application. Explain the use of 'useState(prevTime => prevTime + 1)' while coding a timer. Additionally, convert the timer functionality into a custom hook.
Coming Soon