I have a component which displays a data. I have to open this component in a new window on clicking a button/ link from a parent component.
export default class Parent extends Component {
    construtor(props) {
        super(props);
    }
    viewData = () => {
        window.open('childcomponent.js','Data','height=250,width=250');
    }
    render() {
        return (
            <div> <a onclick={this.viewData}>View Data</a></div>
        )
    }
}
I dont know how to invoke another component and also display it in a new size specified window.
Actually I need to send a props to that child component with which it will fetch me the data from database and render it.