✅ Solved: Button click 'event' listener in react with data binding?

Hey,
I have a button in rive with states (button up, button down).
If I want to trigger a callback in my react app that hosts that animation, what is the right way to do it with data binding?

Is it like i should attach an event listener to the button state which will update the data binded value?