DEV Community

Discussion on: The simplest way to share data between two unrelated Components in react

Collapse
 
muhammadawaisshaikh profile image
Muhammad Awais • Edited

absolutely as you said, after import I got the access to call the method of that class in the component. without we can't use the class or component in other component.