Answers for "on:click svelte arguments"

0

on:click svelte arguments

function handleClick(x){
	console.log(x);
    //output: tree
}

<button on:click={() => handleClick("tree")}>
    It works...
</button>
Posted by: Guest on May-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language