React Hook “useState” is called in function “app” which is neither a React function component or a custom React Hook function

Try to capitalize ‘app’ like

const App = props => {...}

export default App;

In React, components need to be capitalized, and custom hooks need to start with use.

Leave a Comment