A component to render a square div that have height equal to width In your App.js or index.js need to import below line: import "react-square-div/lib/styles.css". Now just need to import SquareDiv from 'react-square-div and use it in any where you want.