At the top level of your custom Hook, just like in a component, make sure to only call other Hooks unconditionally. A custom Hook, unlike a React component, does not require a signature. We may choose what it accepts as parameters and what it should return, if anything.
Finally, we were able to develop a reusable custom hook with simple logic. You may manage component lifecycles using the React useEffect hook without having to convert your functional-based components to class-based components.
The major reason for writing a custom hook is to reuse code. Instead of writing the same code across different components that use the same common stateful logic (such as "setState" or "localStorage"), you may put that code into a custom hook and reuse it.
Hooks are a type of function. What makes them unique is what they're for and when they're supposed to be used. Their aim is to provide a means for you to interact with the react component lifecycle, and they're written in such a way that they only operate when called while a functional component is rendering.
Very helpful course in learning ReactJS
a to z very good course must follow and get your dream job
very helpful course thank you so much
HTTP moudule ka code hee nhi hai .
Please provide Its most imp. thing in entire course.
The zip is empty
Ishwar Shankar Chavan
mam such a great hard work really it is ever best course for beginner to advance .......thanks mam
Nitish Kumar Sharma
What madam is telling is difficult to understand please update your faculty.
May I know where is the source code please. and yes I am very happy to learn with you.