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