title: Do React hooks need to return a value?
body: <p>I've recently started to build out custom hooks in my React application and have been following the documentation on the React website. However, the hooks which I am building require no return value as they set up data for Redux on initialization.</p>
  <p>Example:</p>
  <pre><code>// custom hook
  export const useSetup() {
    useEffect(() =&gt; {
      if (data) fetch().then(data =&gt; dispatch(setInit(data)))
    }, [dispatch])
  }
  
  
  // functional component
  export function Details() {
    useSetup()
  </code></pre>
  <p>I can't find documentation explicitly stating that a hook needs to return anything. However, I cannot find an example of a hook not returning something. Can someone advise on if this approach is correct?</p>