function renderItem(state, time, parent) {
  const dom_item = document.createElement('li');
  dom_item.innerHTML = renderState(state, time);
  parent.appendChild(dom_item);
}
Creates DOM and injects a rendered state into the page.