starter/src/index.js

5 lines
303 B
JavaScript
Raw Normal View History

2021-07-01 12:02:41 +01:00
const greetingElement = document.createElement('div');
const greetingContent = document.createTextNode('Hi there. Time to create the future!');
greetingElement.appendChild(greetingContent);
const pageReference = document.getElementById('app');
document.body.insertBefore(greetingElement, pageReference);