Created
May 7, 2020 01:15
-
-
Save peaceintheheart/b5afd7d5e8a479438a8514403f144d17 to your computer and use it in GitHub Desktop.
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 'jquery'; | |
import store from './store.js'; | |
import bookmarklist from './bookmarklist.js'; | |
import api from './api.js'; | |
import './styles/index.css'; | |
const main = function () { | |
console.log('main start') | |
api.getBookmarks() | |
.then((bookmarks) => { | |
bookmarks.forEach((bookmark) => store.addBookmark(bookmark)); | |
bookmarklist.render(); | |
}); | |
bookmarklist.combineEventListeners(); | |
bookmarklist.render(); | |
}; | |
$(main) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment