const App: FC = () => {
const addItem = () => {
useState([...items, {id:1,name:'something'])
}
return<div>hello</div>
}
linter gave me error, on my App.tsx.
warning Missing return type on function @typescript-eslint/explicit-function-return-type
I have to turn off explicit-function-return-type, how to fix above code? The AddItem doesn't have to return something.