I have this very simple component in React. I am somewhat new to react.I tried everything to remove the white space but am not able to figure out what is causing the white space to appear. Only margin negative seems to be aviable solution but I know thats not appropriate to use please tell me how to fix it
import React, { Component } from 'react';
class Shopdetail extends Component{
constructor(props){
super(props);
this.state={
data: this.props.data,
redirect:false
};
}
componentDidMount(){
console.log(this.props.match.params.idUser);
}
render(){
return(
<div style={{ verticalAlign: 'top',margin:'0',clear:'both'}}>
<div style={{background:'#cc5',width:'100%',height:'100px',verticalAlign: 'top',boxSizing: 'border-box',clear:'both',padding:'0'}}>Hey</div>
</div>
)
}
}
export default Shopdetail