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

150
Views
Cómo identificar la parte inferior cuando el scroller llega al final de div en Reactjs

A continuación se muestra el div en su desplazamiento con desbordamiento. Pero lo que quiero cuando llego al final de ese div usando un desplazador. Quiero cargar más artículos. Agregaré la lista de resultados pero no sé cómo identificar la parte inferior de div.

 const ListItemScroll = (props) => { let { resultList, indexChange, radioValue, radioHandleChange } = props return ( <div style={{ overflow: "auto", overflowX: "hidden", height: "90%" }}> <FormControl component="fieldset" variant="standard"> { resultList[indexChange].dataList.map((list) => { return ( <RadioGroup aria-label="gender" name="controlled-radio-buttons-group" value={radioValue[indexChange].value} onChange={(e) => radioHandleChange(e, list)}> <FormControlLabel size="small" value={list.name} control={<Radio size='small' />} label={list.name} /> </RadioGroup> ) }) } </FormControl> </div> ) }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debe implementar Intersection Observer para identificar si el div está en la ventana gráfica o no. Inserte un div vacío antes de </FormControl> y use Intersection Observer en ese div.

Consulte aquí: https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

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!