Go to code
Copy codeuseCallbackXTimes
Triggers an assigned callback the specified amount of times.
Try tapping coins below. "Updated!" text's mount state is triggered by the hook, which fires up to 3 times.
Once any coin reaches 3 tosses, tap its "Coin toss" text to reset its callback's count.
Coin toss #0
Coin toss #0
Coin toss #0