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

351
Views
mi clasificación no funciona en react-data-table-component

esta es la tabla que tengo y si hago clic en cualquiera de los encabezados id dosent sort

cuando hago clic en el rango, la ubicación o las muertes en la parte superior, solía ordenar la lista antes, pero ahora no funciona. Los datos que ve no son todos los datos que he usado, hay algunos más que harían que la pregunta fuera larga, así que solo agregué los primeros. Cualquier ayuda sería apreciada.

constante

 data = [ { location: 'Texas', deaths: '4,164', rank: 1 }, { location: 'California', deaths: '3,449', rank: 2 } ] const columns = [ { name: <h2>Rank</h2>, selector: row => <h3>{row.rank}</h3>, sortable: true, }, { name: <h2>Location</h2>, selector: row => <h3>{row.location}</h3>, sortable: true, }, { name: <h2>Deaths</h2>, selector: row => <h3>{row.deaths}</h3>, sortable: true, } ]; return ( <div className='table_map'> <DataTable data={data} columns={columns} print='true' theme="solarized" fixedHeader fixedHeaderScrollHeight="700px" customStyles = {customStyles } /> </div> ) } export default Table
about 4 years ago · Juan Pablo Isaza
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!