I can tell you put a lot of effort and thoughts into writing this blog post. Should I Learn JavaScript Before Learning Node JS? How I made The Periodic Table with CSS Grid and React, Fruit Ninja Random Fruit Facts API Built with Pure Node.js, These 7 Tips Will Make You A Super Productive Programmer, How to Share Passwords With Your Developer, How To Properly Handle Your Users Passwords, Thoughts after Building a Reddit Clone in MERN (Node & React). In reacting whatever we write that looks like HTML is not pure HTML actually. Here we use the ref system to fetch image height and width. How to get the width and height of an element in jQuery ? Let's take an example of that: The max-width and max-height properties of CSS works better, but they are not supported in many browsers. Use webp/avif images for faster loading but also have a fallback to png/jpeg files using a