Menerapkan Impor Dinamis di Event Handler

const handler = () => {
  import ('./create-todo.js').then((module) => { 
   // access any exported function in the module.
   // following createTodo() generates DOM string for Create Todo 
   // set the DOM string on an element. 
   document.getElementById("createTodo").innerHTML = module.createTodo();
});
}
// click event handler added on the hyperlink, “Create Todos”.
document
.getElementById("btnCreateTodo")
.addEventListener("click", handler);
Bright Booby