Home > Net >  Console is not showing any error but still the function is not executing i don't know what is w
Console is not showing any error but still the function is not executing i don't know what is w

Time:01-29

This is the code i am writing and having the error

this is the console log which is not showing anything

CodePudding user response:

As per the rules hooks, useState or anyHook must be at the topof the component, try bringing useState before function declaration.

  •  Tags:  
  • Related