Is there a way to resize a pre-existing React component within a browser that already has predetermined height and width?
componentDidMount(x,y,z){
this.setState({height:window.innerHeight+'px'});
}
I'm unsure if this approach is the correct one. Should I first obtain the viewport size, and then attempt to resize the component accordingly later on? How can this be achieved effectively?