title: Why does this piece of code repeat itself?
body: <p>The following code snippet was found on </p>
  
  <p><a href="http://www.jchapron.com/2015/08/14/getting-started-with-redux/" rel="nofollow">http://www.jchapron.com/2015/08/14/getting-started-with-redux/</a></p>
  
  <pre><code>import React from 'react';  
  import { createStore as initialCreateStore, compose } from 'redux';
  
  export let createStore = initialCreateStore;
  
  if (__DEV__) {  
    createStore = compose(
      require('redux-devtools').devTools(),
      require('redux-devtools').persistState(
        window.location.href.match(/[?&amp;]debug_session=([^&amp;]+)\b/)
      ),
      createStore
    );
  </code></pre>
  
  <p>Why does the author import <code>initialCreateStore</code> as <code>createStore</code> and then reassign that same result to <code>createStore</code></p>
  
  <p>Wont just importing <code>createStore</code> from the beginning do the same thing ? </p>