Best practice for fetching API data asynchronously from different endpoints with React?
I am learning React for a project at work and currently really having trouble getting the hang of the asynchronous model.
why useState doesn’t work and how to fix it?
useState doesn’t work. Although I did the same in another component and everything was fine.
Line 7:31: React Hook “useState” is called in function “categories” that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word “use”
TypeError: cambiarContrasenaEstudianteApi is not a function
My react code in results in:
TypeError: cambiarContrasenaEstudianteApi is not a function