title: How to upload image using ReactJS and save into local storage?
body: <p>Here is my code is like:</p>
  
  <pre><code>&lt;input 
   type="file" 
   id="imageFile" 
   name='imageFile' 
   onChange={this.imageUpload} /&gt;
  </code></pre>
  
  <p>Now I want to store this image in local storage and display it at another side. So I want to store the image in local storage. My code is inside of image upload function.</p>
  
  <p>My function is like:</p>
  
  <pre><code>imageUpload(e) {
      console.log(e.target.value);
  }
  </code></pre>
  
  <p>My console print is like <code>C:\fakepath\user-bg.jpg</code> </p>