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

130
Views
React(16.8.3) document.getElementById() returning null in componentDidMount

After updating Primereact to 8.3.0 document.getElementById() is returning null for div in primereact accordion created in return of jsx. I was able to access the div returned by the primereact accordion in previous version of primereact 3.4.0. React version is same in both cases that is 16.8.3

I would like to know how do I access the div returned from primereact accordion using document.getElementById() in componentDidMount.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

PrimeReact 8.3.0 requires React 17 or greater and you are using 16.8.3.

See: https://primefaces.org/primereact/setup/

Please note that react >= 17.0.0 and react-dom >= 17.0.0

about 4 years ago · Santiago Trujillo 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!