Custom hook in React - Interview Cheatsheet
What are Custom Hooks?
Custom hooks are reusable functions that start with 'use' and contain stateful logic.
The Basic Rule:
Must start with "use" (like useCounter, useAPI, useLocalStorage)
Can call other hooks inside them
Regular JavaScript funct...
marufrayhan.hashnode.dev2 min read