Posts under hooks
How to build To-do list in React
Abhishek EH | Feb 15, 2022 | 10 Min Read
Step by step guide on how to build a to-do list in React. How to mark the task as done and how to delete a task. Also, retrieve the stored tasks from local storage.
Read More
How to refresh a page or a component in React
Abhishek EH | Dec 2, 2022 | 2 Min Read
Tutorial how to hard refresh a page in React when a button is clicked and how to soft refresh the page when the component state is updated.
Read More
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.
Read More
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'.
Read More
Can't perform a react state update on an unmounted component
Abhishek EH | Mar 27, 2023 | 9 Min Read
Tutorial on how to prevent memory leaks in your application when an asynchronous call responds and the component is unmounted.
Read More
How to focus a child component input from parent component in React
Abhishek EH | Apr 1, 2023 | 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.
Read More