title: React hooks: how to access props within "mount" useEffect & not throw linting warning
body: <p>Unless I'm mistaken, this is valid code:</p>
  
  <pre><code>useEffect(() =&gt; {
     if (prop1) {
        doSomething();
     }
  }, []);
  </code></pre>
  
  <p>(prop1 is a prop). But when linting I get the following error:</p>
  
  <pre><code>React Hook useEffect has a missing dependency: 'prop1'. Either include it or remove the dependency array.
  </code></pre>
  
  <p>(react-hooks/exhaustive-deps) </p>
  
  <p>I don't want to pass prop1 as a dependency because I would lose the "only run on mount" behaviour. But I need to access the prop to doSomething(). </p>
  
  <p>Any suggestions? </p>