title: Accessing cookies from React SSR
body: <p>Here is the simple thing.
  React routing redirect path depends on the value in cookies, so how do I handle it Server Side?</p>
  
  <pre><code>render() {
    something = cookie.get('my-something-value') || 'default '; // always takes defualt value beacuse cookies are not available 
    return (
      &lt;Switch&gt;
        &lt;Route /&gt;
        &lt;Route /&gt;
        &lt;Redirect to={`/something/${val}`}/&gt;
      &lt;/Switch&gt;
    )
  }
  </code></pre>
  
  <p>So <code>renderToString</code> method in the server parses elements to string ignoring this condition and I get wrong redirect even though I have cookies set</p>