Skip to content

Instantly share code, notes, and snippets.

@peaceintheheart
Created May 7, 2020 01:15
Show Gist options
  • Save peaceintheheart/b5afd7d5e8a479438a8514403f144d17 to your computer and use it in GitHub Desktop.
Save peaceintheheart/b5afd7d5e8a479438a8514403f144d17 to your computer and use it in GitHub Desktop.
// 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