Skip to content

Instantly share code, notes, and snippets.

@3dln
Created October 14, 2020 07:29
Show Gist options
  • Save 3dln/b5ad030c984559977d87ca1c27ebba5e to your computer and use it in GitHub Desktop.
Save 3dln/b5ad030c984559977d87ca1c27ebba5e to your computer and use it in GitHub Desktop.
virgool - webpack tutorial 4-1
import _ from 'lodash';
import './style.css';
function component() {
const element = document.createElement('div');
element.innerHTML = _.join(['Hello', 'webpack'], ' ');
element.classList.add('hello');
return element;
}
document.body.appendChild(component());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment