Note the tool in uses here. It is called the ‘Grid / Array’ tool, allowing you to duplicate shapes and objects with a bit more ease and control.
This video explains how it works: