title: Do props that are functions belong in a useEffect dependencyArray?
body: <p>Say I have the following code:</p>
  <pre><code>const ReactFunction = ({...props}) =&gt; {
  
  useEffect(() =&gt; { props.function(props.value) }, [props.value])
  
  return &lt;input value={props.value} onChange={props.onChange} /&gt;
  }
  
  const ReactFunctionWrapper = () =&gt; {
  
  const [value, setValue] = setState(0)
  const logger = (e) =&gt; {console.log(e}
  
  return &lt;ReactFunction onChange={setValue} value={value} function={function} /&gt;
  }
  </code></pre>
  <p>Should the function() prop be in the dependencyArray of the useEffect as well even though it's a function and should never change?</p>
  <p>What exactly should be going into the dependency array?</p>