I have a form in one of my React components, and and in the outside component that calls it I want to pass a reference to a button there, so that I can also submit that usin
You can pass the submit function as a prop and use this method whenever you want.
for more complex situations you can use redux save your form data on redux and whenever the button is clicked you read data from redux and submit them