Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
alinear horizontalmente una lista de componentes en react.js

Tengo que alinear los componentes renderizados usando una función de mapa horizontalmente como su alineación predeterminada verticalmente.

Aquí está mi componente:

 <Table.Cell> {[...Array(this.props.numPages)].map((e, i) => ( <Typography customLink onClick={() => this.handlePageClick(i + 1)} key={'key'.concat(i)} className='pages'> {i + 1} </Typography> ))} </Table.Cell>

Aquí, la Typography es el componente que debe representarse como números de página, pero se representa verticalmente.

Aquí está el css que usé:

 .pages{ display: flex; flex-direction: horizontal; }

Cualquier ayuda será apreciada.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Es la envoltura la que necesita ser flexible, y la dirección de flexión horizontal no existe...

Prueba con esto tal vez:

 <Table.Cell> <div style={{display:'flex', flexDirection:'row'}}> {[...Array(this.props.numPages)].map((e, i) => ( <Typography customLink onClick={() => this.handlePageClick(i + 1)} key={'key'.concat(i)} className='pages'> {i + 1} </Typography> ))} </div> </Table.Cell>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!