React custom hook square bracket curly braces – Javascript
The point is to use the same custom hook to make different API calls. The problem: When I return with {}, it works. When I return with [], it doesn't: It does not enter the ApiGetDogFactsComponent function, it renders the…