Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Counter index initializer
// Initialize the counter code when DOM is ready
import './style.sass';
import counter from './counter';
document.addEventListener('DOMContentLoaded', () => {
counter.initialize();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment