Premium

React Dynamic Table (Rows × Columns)

By FrontendAtlas Editorial · Updated Jan 30, 2026

Challenge summary

Normalize values, rebuild the grid on action, and render consistent labels so users can verify correct dimensions. React focus: generate rows/cols with map and keep inputs controlled.

What you'll practice

  • Provide two numeric inputs: one for the number of rows and one for the number of columns.
  • Provide a button (e.g. "Generate table") that rebuilds the table when clicked.
  • Render an HTML table whose number of rows and columns matches the current inputs.
  • Each cell should show something simple and visible, e.g. its row/column indices like R1C1.
  • Initially, showing an empty state or no table is fine. After the first generate action, a table appears.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

Free related practice

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.