Created
September 8, 2019 08:17
-
-
Save thanapongp/74bfa011415fe20a761985379b90da5d to your computer and use it in GitHub Desktop.
app.js with updated constructor
This file contains hidden or 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 { htmlToElement } from './utils'; | |
| export default class App { | |
| constructor() { | |
| this.input = document.getElementById('input'); | |
| this.listRoot = document.getElementById('list-root'); | |
| // Clone node and its decendants into class property. | |
| this.emptyState = document.getElementById('empty-state').cloneNode(true); | |
| this.initInput(); | |
| } | |
| //... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment