Check out example codes for "how many times did goku turn ultra instinct". It will help you in understanding the concepts better.

Code Example 1

lets just say 3 times

Learn ReactJs, React Native from akashmittal.com