Create a component that dynamically generates a grid layout based on a predefined number of rows and columns.
MediumProblem Statement
Create a component that dynamically generates a grid layout based on a predefined number of rows and columns.
Sample Input
Rows: 3, Columns: 3
Sample Output
A 3x3 grid of divs.
Limits
Time: 2s · Memory: 256 MB