Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

57
Vistas
I want to create a meshed table like structure in react

I am creating a page where I need to show a table having rows and columns like structure and also need to add numbers inside the cells in the table. It has width and height also for the designing perspective.

But I have no idea how to implement the structure in react.

I am adding a prototype of what I have to create in my project.

Table image

What should be the best way to implement this so that I can able to show the colors and numbers.

7 months ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use a table

const rows = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

<table>
  {rows.map(cells => {
    return (
      <tr>
        {cells.map(cellData => <td>{cellData}</td>)}
      </tr>
     );
  })}
</table>

Or use divs, if you don't need a table.

7 months ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos