Just for example If I have URL www.testonly.com with 3 different ports 3000, 3001, 3002
Then I have app running on port 3000 and 3001 Now I want to access any component from the app running on port :3001 in the app running on :3000
Is it possible to do so, will cross-origin policy has something to do with it, how I will be able to achieve this kind of functionality
Also I don't want to use <iframe /> html tag for this, as any changes in the origin component will affect every component where I am using <iframe />
I want to achieve something like below
      <Router>       
         <Route path="/test" render={(props) => <ComponentFromOtherPort {...state} {...props} />} />         
      </Router> 
Here
<ComponentForOtherPort />is the component whose code is running on port :3001React routers are present on the app running on port :3000
Every time, I want to send different values with <ComponentForOtherPort /> and on that component I want that props to be used something like below.
//code on :3001
class ComponentForOtherPort extends React.Component{    
componentDidMount(){    
 //props 
 console.log(this.props);
 }
}