Using PrimeReact 4 with React 17

UI Components for React
Post Reply
evrii
Posts: 1
Joined: 13 Dec 2022, 17:22

13 Dec 2022, 17:51

Good morning all, I was wondering if anyone has a migration path from an older version of PrimeReact (v4)? We are trying to update our project to React 17, but the Menu component appears to have a document.addEventListener built right into it (https://github.com/primefaces/primereac ... nu.js#L158). React 17 moves most event delegation away from the document root to individual nodes.

Ideally we would first update our version of React and then update our version of PrimeReact. Is PrimeReact incompatible with React 17? If so, is there a way to maintain the theming of nova-light when updating from v4 to a more modern version? Thank you for your help.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

20 Dec 2022, 18:07

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests