title: Should I pass useSelector to useState
body: <p>Hello guys I have question regarding which method you prefer:</p>
  
  <p>In a React functional component with TypeScript, that gets values from Redux State using useSelector is:
  1) </p>
  
  <pre><code> const campaign = useSelector(campaignSelector);
   const [audienceSample, setAudienceSample] = useState&lt;number | null&gt;((campaign || 
    {max_completes_total: null})['max_completes_total']);
  </code></pre>
  
  <p>from 
  2) </p>
  
  <pre><code> const campaign = useSelector(campaignSelector);
    const [audienceSample, setAudienceSample] = useState&lt;number | null&gt;(null);
    useEffect(() =&gt; {
      setAudienceSample(campaign.max_completes_total)
       },[campaign])
  </code></pre>
  
  <p>I know 1 is less code but do you think it is faster and which one would you prefer
  thank you guys</p>