diff --git a/ErrorEncountered b/ErrorEncountered new file mode 100644 index 0000000..5901b42 --- /dev/null +++ b/ErrorEncountered @@ -0,0 +1,10 @@ +/* These are the list of error and warnings that I received while development */ + + 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