title: array is printed as a string in react js
body: <p>How does react work with arrays while we try to print them?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>class App extends Component {
          constructor() {
            this.state = { 
              myarr: [1, 2, 3, 4, 5] 
            };
          }
          render(){
            return &lt;div&gt;{this.state.myarr}&lt;/div&gt; 
            // it prints 12345.... I am able to understand why???
          } 
          }
      }</code></pre>
  </div>
  </div>
  </p>