Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

285
Vistas
How to show table Data in single Table Row in react js

I am fetching My User data from the backend. I am using Bootstrap Table to show the data. see the image enter image description here

I want to show all the Records under the one Table in Row Formatting

This is my code

 <div>
  <table className="table table border shadow table-striped table-md table-hover" style={{ marginLeft: '4%', marginTop: '13%', width: '173%' }}>
    <thead className="table-light">
      <tr style={{ color: 'blue', "fontSize": "18px" }}>
        <th scope="col">#</th>
        <th scope="col">Name</th>
        <th scope="col">Email id</th>
        <th scope="col">Role</th>
        <th scope="col">Action</th>
      </tr>
    </thead>
    <tbody>
          <tr>
            <th scope="row">{ 1}</th>
            <td>{user.name}</td>
            <td>{user.email}</td>
            <td>{user.role}</td>
            <td>
              <button type="submit" onClick={()=>{updateUser(user)}} className="btn btn-warning mx-1">{<FaUserEdit />} Edite</button> 
              <button type="submit" onClick={() => { deleteUser(user._id) }} className="btn btn-outline-warning mx-1">{<MdDelete />} delete</button>
            </td>
          </tr>
        
    </tbody>
  </table>
</div>
about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda