Skip to content

Commit

Permalink
Update ErrorEncountered
Browse files Browse the repository at this point in the history
More learning
  • Loading branch information
SwarnenduDasKW authored Aug 9, 2020
1 parent 861678a commit 3acd34a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ErrorEncountered
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
React Hook "useState" is called in function "requestapi" which is neither a React function component or a custom React Hook function
Solution: https://stackoverflow.com/questions/55846641/react-hook-usestate-is-called-in-function-app-which-is-neither-a-react-funct
Capitalized the function name


import Requestapi from "./requestapi";
Here the "./requestapi" should match exactly with the name of the file in the disk. Case sensitive.
Even "Requestapi" should match the "export default Requestapi" in the component

0 comments on commit 3acd34a

Please sign in to comment.