How to reolsve “Don’t use `object` type error” in React
I am getting this error for the code below. What is the correct type to use here in react?
How to create a stable function that is not required in dependency arrays of hooks by the ESlint rule react-hooks/exhaustive-deps
In React + TypeScript, I am trying to create a custom hook which returns stable updater function with referential types and stable signature such as those provenients from useState or useDispatch so that is not required in dependency arrays of hooks by the eslint rule hooks/exhaustive-deps
Can I disable an ESLint rule inside JSX blocks, while keeping it active in the rest of file?
This is my .eslint.cjs
file for React: