[ad_1]
This probably has to do with linting, Maybe this can help you no-unused-vars
You can also disable linting on one line
// eslint-disable-next-line no-unused-vars
const [edit, setEdit] = useState({...})
[ad_2]
solved Turnoff a certain warning in VSCode