Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

where to make the hooks functions

Always make the hooks function like const dispatcher = useDispatcher(); 

in the functional Component or the React Custom hooks 

don't make it in the only function of the js file so it did not work here.
 
PREVIOUS NEXT
Tagged: #hooks #functions
ADD COMMENT
Topic
Name
2+8 =