Invalid hook call when calling a function
I’m doing a React project. I have two reutilizable functions that made requests to an API. When I call the functions, react raise the error:
SetVariable showing empty array
I Have problem in react, I use fetch API from tutorial to get data from my API to show data on react, Here My JSON,