Can I use && and/or || operators in dependency array like this:
const isVisible = true
const isModified = false
useEffect(() => console.log("both are true"), [isVisible && isModified])
Is it a bad practice?
Eslint says React Hook useEffect has a complex expression in the dependency array. react-hooks/exhaustive-deps
How can I achieve the same result by doing this the right way?