Created
November 18, 2019 20:11
-
-
Save CarlMungazi/fff5666c2b0d1f2b810c835d8ecab129 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
m.render(document.getElementById('app'), | |
m('form', { | |
onsubmit: (e) => { | |
e.preventDefault(); | |
console.log('I am on the form element') | |
} | |
}, [ | |
m('button', { type: 'submit'}, 'Submit') | |
]) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment