title: SessionStorage value is not getting displayed on first Page load in React App
body: <pre><code>JSX File:
  const Action = React.createClass({
     getInitialState() {
        return {actiondrp: [],empDetail:[],show:false,**UserName**:sessionStorage.getItem('UserName')}
     },
     componentWillMount: function () {
        var _this=this;
          _this.setState({UserName:sessionStorage.getItem('UserName')});
          this.fetchBypasses();
         // console.log(UserName);    
     },
  
  
  HTML: 
  
    render: function() {
       var that=this;
       return (
          &lt;div&gt;
              &lt;span&gt;&lt;/span&gt;
              &lt;span&gt;Welcome,{that.state.UserName}&lt;/span&gt;
          &lt;/div&gt;
       )
    }
  </code></pre>
  
  <p>SessionStorage should appear on first page load but it is coming as null for the first time. If i reload the page, it is coming correctly.</p>