tigersze

Results 7 comments of tigersze

@malinantonsson would you mind explaining more? i do not know how to do this. > Hey, > You can create a ref on the parent container `const timerRef = useRef(null);`...

@malinantonsson Thank you very much. In fact, what i want to do is to call the start of the timer from another function (in other file, not from the parent)....

Also one more question. I am using the class but not function for my component. It do not allow me to put const inside the class. I don't know whether...

@malinantonsson Thanks. I have successfully created the reference in my time component (a child class). Now I want to call the class function, i.e. onStop in your example, in other...

@samjbmason sure. The `time.js` (I have created the reference and test with the start button and it works) https://codepen.io/tiger-tiger-sze/pen/YzwKMwy The `Event.js` https://codepen.io/tiger-tiger-sze/pen/VweZNeL?editors=0010 I want to call the from the startClick...

The main problem is that i will do the blockchain transaction and start the timer. I don't know how to write the code. I just know that I need to...

@malinantonsson if you want the full code, you can give me your email and i can send you through email.