title: useHook return two elements in code definition and how to return one only when using in functional component?
body: <p>In my useHook function, I am returning two parameters.</p>
  
  <pre><code>import {useEffect, useState} from 'react';
  
  export function useKeyAnnounce(
  
  ) {
    ....
  
    return [isPressed, setIsPressed];
  }
  </code></pre>
  
  <p>when using in another functional component.</p>
  
  <pre><code>const [
      isPressedLocal,
      setIsPressedLocal
    ] = useKeyAnnounce();
  </code></pre>
  
  <p>say I only use <code>setIsPressed</code> and never use <code>isPressed</code>, how do I just return <code>setIsPressedLocal</code>?</p>