title: Trying to create a typing effect on reactjs
body: <p>So basically i have already created the typing effect but i can only get the first string in the array to work. I want to write out all at the arrays in new lines using the typing effect.I have listed the JSX and CSS files below.
  I should also point out that this just part of a big project so trying to run this JSX and css wont work</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>import React  from 'react';
  import "./Content.css";
  
  
  const content =()=&gt;{
   const message =["WELCOME TO MY WORLD","THIS IS MY WEBSITE","I AM AT YOUR SERVICE"];
   let i =0 ;
   for(i=0; i&lt;message.length;i++){
      return(
     &lt;div className='background'&gt;
      &lt;h1 className="typewriter"&gt;
       {message[i]} 
      &lt;/h1&gt;
      &lt;/div&gt;
  
      )
  
   }
   
  }
  
  export default content;</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>background{
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
  
  }
  
  canvas{width: 60;
  
  
  }
  
  .typewriter {
    text-align: center;
    overflow: hidden; 
    border-right: .15em solid black; 
    color: white;
    font-family: Courier New;
    top:30%;
    font-size: 40px;
    white-space: nowrap; 
    letter-spacing: .30em;
    animation: 
      typing 3.5s steps(30, end),
      blink-caret .75s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width:20% }
    to { width: 50% }
  }
  
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>