I want to use this component globally from all my other components. So I decided to define it within my App component and set its ref to a global variable which I exported. But I could not access it from the other components, where it shows as undefined.
Short Description
I want to use this component globally from all my other components. So I decided to define it within my App component and set its ref to a global variable which I exported. But I could not access it from the other components, where it shows as undefined.
Steps to Reproduce / Code Snippets / Usage
Expected Results
Access the exported ref from other files so I can directly call the alert showing function.
Additional Information