title: Use image tag inside the for loop in ReactJs
body: <p>I have an array which has set of image names. I could print all the images by using <code>console.log</code> but unfortunately when I tried <code>&lt;img/&gt;</code> it didn't view images.</p>
  
  <pre><code>   for (let index = 0; index &lt; array.length; index++) {
     const element = array[index];
     console.log(element)
       }
  </code></pre>
  
  <p>output of <code>console.log(element)</code></p>
  
  <pre><code>DSC_0000038.jpg 
  DSC_0000040.jpg 
  DSC_0000039.jpg 
  DSC_0000047.jpg 
  DSC_0000045.jpg 
  DSC_0000049.jpg 
  DSC_0000042.jpg 
  DSC_0000041.jpg
  </code></pre>
  
  <p>how to solve my problem?</p>