Created
October 14, 2020 07:29
-
-
Save 3dln/b5ad030c984559977d87ca1c27ebba5e to your computer and use it in GitHub Desktop.
virgool - webpack tutorial 4-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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