I want to give image height to image main div to make it fit inside div like below is image which height is 186px so i want to give that image height to main div to make them fit. Is there any want to get image height which i mark in below image.
As there is a solution but that is working fine as it giving another height.
var img = new Image();
img.src = this.props.image;
console.log(img.height) // it give me 406 not 186