Posts under hooks
How to store and update objects in React useState hook
Abhishek EH | Dec 16, 2022 | 3 Min Read
Guide on how to store and modify objects in useState hook without mutating other object properties.
How to fix React Hook warnings for async functions in useEffect
Abhishek EH | Dec 21, 2021 | 2 Min Read
Guide on how to fix the warnings 'useEffect function must return a cleanup function or nothing' and 'Effect callbacks are synchronous to prevent race conditions. Put the async function inside'.
React prevent state updates on unmounted components
Abhishek EH | Dec 17, 2021 | 9 Min Read
Tutorial on how to prevent memory leaks in your application when an asynchronous call responds and the component is unmounted.
How to focus a child component input from parent component in React
Abhishek EH | Dec 17, 2022 | 2 Min Read
Tutorial on how to focus a child component input from parent component in React when a button is clicked in the parent component.