mirror of https://github.com/sveltejs/svelte
10 lines
168 B
10 lines
168 B
6 years ago
|
<script>
|
||
5 years ago
|
import CustomButton from './CustomButton.svelte';
|
||
6 years ago
|
|
||
|
function handleClick() {
|
||
4 years ago
|
alert('Button Clicked');
|
||
6 years ago
|
}
|
||
|
</script>
|
||
|
|
||
2 years ago
|
<CustomButton on:click={handleClick} />
|