Created
October 17, 2022 13:40
-
-
Save ch8n/6407f352c114e75a17d394bc0e27023d to your computer and use it in GitHub Desktop.
button click destruct
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
Button( | |
onClick = { | |
// thing that is happening is : | |
setCount(count + 1) //๐ 0 + 1 | |
setCount(count + 1) //๐ 0 + 1 | |
} | |
) { | |
Text(text = "Increment by 2") | |
} // button end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment