code

useEffectOnce

useEffect but it only applies once.
Try to guess the hidden digit. One useEffect is listening to all buttons. Tapping on them will trigger the game flow logic only once. Afterwards, useEffect disables and buttons will no longer work.
Retrying will re-enable useEffect, thus restoring buttons' functionality.
Guess! Success chance: 10%