title: How to use hook in server side render on next js?
body: <p>But can't use hook in  server-side render page</p>
  <p><strong>Example:</strong></p>
  <pre><code>export const getServerSideProps: GetServerSideProps = async (ctx:any) =&gt; {
     
      const { data } = useLocalStorage()
  
      return {
          props: { data : data}
      }
  }
  </code></pre>