Created
July 28, 2019 02:28
-
-
Save hibuno/8c5c3127aaaca89c0ffc04f97e911734 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
<script> | |
const Message = 'This is a simple page with Svelte' | |
function ShowAlert() { | |
alert('This is a simple alert') | |
} | |
</script> | |
<section class="section-wrapper"> | |
<h1>Hi There,</h1> | |
<p>{Message}</p> | |
<button on:click={ShowAlert}> | |
Show Alert | |
</button> | |
</section> | |
<style> | |
.section-wrapper { | |
color: #888; | |
} | |
</style> | |
<button disabled>Disabled Button</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment