title: Change locale in react-datepicker
body: <p>I am using <a href="https://www.npmjs.com/package/react-datepicker" rel="noreferrer">react-datepicker</a> NPM package,<br>
  I tried to follow documentation but I was unable to import </p>
  
  <pre><code>registerLocale 
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>setDefaultLocale
  </code></pre>
  
  <p>from <code>react-datepicker</code></p>
  
  <p>Do you see where I make mistake?</p>
  
  <pre><code> import DatePicker from 'react-datepicker';
  
  
  
  ...
      &lt;DatePicker
              { ...this.props }
              dateFormat={ this.dateFormat }
              ref={ (node) =&gt; { this.ref = node; } }
              onClickOutside={ this.clickOutside }
            /&gt;
  ...
  </code></pre>
  
  <p>this is code where I want to import locale.</p>