I have created a simple sample here: https://codesandbox.io/s/crimson-monad-r6tns?fontsize=14&hidenavigation=1&theme=dark
When you click the text 1 it increment the value in the child component. In the parent i have a button where I want to access the value in the child component from the parent component. Not with an event but something like ChildComponent.YourCurrentValue. Is that possible in REACT? Can you add an id to the child component in the render method and then access it's properties by that?
You have to pass the changes to the parent by calling a prop function in child like this:
And get it back in parent component such as below:
Hope you found your answer as you wanted.