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
.
I feel like we are doing the same course in Udemy.
If so, just capitalize the
const app
To
const App
Do as well as for the
export default app
To
export default App
It works well for me.
As far as I know a linter is included into the this package. And it requires you componend should begin from Capital character.Please check it.
However as for me it's sad.