Check out example codes for "set width and height of image html". It will help you in understanding the concepts better.

Code Example 1

<img src="smiley.gif" alt="Smiley face" height="42" width="42">

Learn ReactJs, React Native from akashmittal.com