title: How to add paragraph dynamically in electron
body: <p>I have an array of paragraphs</p>
  
  <pre><code>infoArray= [
      "&lt;p data-i18next ='userGuideInfo.microbreak'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.break'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.notif'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.tray1'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.tray2'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.tray3'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.setting1'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.setting2'&gt;&lt;/p&gt;",
      "&lt;p data-i18next ='userGuideInfo.setting3'&gt;&lt;/p&gt;"
  ]
  </code></pre>
  
  <p>I want to display them one by one on button click. I'm using electron JS. My HTML arrangement and JS code is</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>let infoDiv = document.querySelector('div[id=infoDisplay]')
  let infoPara = document.querySelector('p[id=infoPara]')
  infoPara.remove()
      
  infoDiv.appendChild(infoArray[currIndex])</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id=infoDisplay&gt;
      &lt;p id="infoPara" data-i18next="userGuideInfo.microbreak"&gt;&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can someone suggest how should I do it? Thanks in advance</p>