title: How to pass arguments to useCallback
body: <p>How in this example from the Shopify Polaris library (ReactJS)</p>
  <pre><code>function TextFieldExample() {
    const [value, setValue] = useState('Jaded Pixel');
  
    const handleChange = useCallback((newValue) =&gt; setValue(newValue), []);
  
    return &lt;TextField label=&quot;Store name&quot; value={value} onChange={handleChange} /&gt;;
  }
  </code></pre>
  <p>is the argument <code>newValue</code> being passed to the <code>useCallback</code>?</p>
  <p>I tried to lookup the source of the Polaris library but I couldn't come to a practical conclusion.</p>
  <p>Edit: Maybe it would help to understand why this is necessary in React:</p>
  <pre><code>const useForceUpdate = ()
  =&gt; {
  [value, setValue] = useState(0);
  
  return () =&gt; setValue(value =&gt; value + 1);
  }
  </code></pre>
  <p>To call this inside a component, I have to</p>
  <pre><code>const forceUpdate = useForceUpdate();
  forceUpdate();
  </code></pre>
  <p>instead of just</p>
  <pre><code>useForceUpdate();
  </code></pre>