React Hook "useState" is called in function "expenseItem" that is neither a React function component nor a custom React Hook function code example

Example 1: React Hook "React.useState" is called in function "placeItem" which is neither a React function component or a custom React Hook function react-hooks/rules-of-hooks

React Hook "React.useState" is called in function "placeItem" which is neither a React function component or a custom React Hook function  react-hooks/rules-of-hooks

answer :- function name must be start with capital letter

Example 2: React Hook "useState" is called in function which is neither a React function component or a custom React Hook functio

export default App