Created
July 6, 2020 12:16
-
-
Save amorfati0310/8197ed373419df915c2e8a4dda1e2623 to your computer and use it in GitHub Desktop.
help01.js
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
(async function(store){ | |
const res = await teamsApi.getTeams() | |
store.setState({teams: res}) | |
console.log(store.state) | |
// TODO 여기 왜 안 되는지 물어보기 | |
// window.document.addEventListener('DOMContentLoaded', () => { | |
// console.log(store.state) | |
// const teamBoards = new TeamBoards({ elements: '#team-boards', teams: store.state.teams }) | |
// }) | |
const teamBoards = new TeamBoards({ elements: '#team-boards', teams: store.state.teams }) | |
})(store); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
비동기_ㅇ ... 다시 잘 공부할 것