It's a good thing to bind first this function in your constructor, so you won't have a scope problem.
Then you can create a ref in the "another component" and apply it to this component where you have this function. Then you can call this.yourRef.current.uCyr()
It's a good thing to bind first this function in your constructor, so you won't have a scope problem.
Then you can create a ref in the "another component" and apply it to this component where you have this function. Then you can call this.yourRef.current.uCyr()
codesandbox.io/s/strange-dust-98uwd