how to use hooks in react?
Answers
Answered by
0
Answer:
dgryedeuydvjdbkjddc
Answered by
0
Answer:
Only Call Hooks at the Top Level
Instead, always use Hooks at the top level of your React function. By following this rule, you ensure that Hooks are called in the same order each time a component renders. That's what allows React to correctly preserve the state of Hooks between multiple useState and useEffect calls.
Mark as brainlist
Similar questions