If you are starting to play or learn react hooks , maybe you face this error.
Error: React Hook "useState" is called in a function "home" which is neither a React function or a custom React Hook function.
Did you try change the name to use capital letter ? because.. WHEN YOU ARE USING REACT HOOKS, YOUR FUNCTIONAL COMPONENTS MUST START WITH A CAPITAL LETTER
please read “The hooks rules” https://reactjs.org/docs/hooks-rules.html