JSFiddle - React, Tailwind, and code Playground
by tmyie
HTML
<p id="do"> </p>
<input type='text' id='input'/>
<input type='button' onclick='addText()' value='Add To List'/>
JavaScript
function addText(){
var input = document.getElementById('input').value;
//document.getElementById('do').innerHTML = input;
var node=document.createElement("P");
var textnode=document.createTextNode(input);
node.appendChild(textnode);a
document.getElementById('do').appendChild(node);
}