I have this component:
const WizardView = () => {
return (
<Wizard finishButtonClick={() => {}} />
);
};
The finishButtonClick function returns some value that I want to use and expects () => void Is there a way to use the value that finishButtonClick returns in another function?
For example something like this:
anotherFunction(finishButtonClickReturnValue);