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.
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