Using PrimeReact with React v15

UI Components for React
Post Reply
ryandekock
Posts: 1
Joined: 20 May 2021, 10:59

20 May 2021, 13:05

We are developing an SharePoint Framework client-side web part for a SharePoint Server 2019 environment. Since we are targeting SharePoint Server 2019 (SPFx v1.4.1), the latest version of React that can be used is v15.x (https://docs.microsoft.com/en-us/sharep ... patibility).

We would like to use PrimeReact components, but even v4 (oldest selectable version on the PrimeReact site) seems to have a dependency on React v16.6.3. Is there an older version of PrimeReact that could be used with React v15.x? if so, where can we find the documentation for this?

mert.sincan
Posts: 4741
Joined: 29 Jun 2013, 12:38

16 Jun 2021, 08:42

Hi,

Thanks a lot for your interest! To tell the truth, I've never tried SharePoint and PrimeReact together. But I used createRef and forwardRef methods in PrimeReact core and these methods came with React 16.3 version. So I think it won't work in React 15.x. When I examine the link you shared above, it seems that SharePoint can work with React 16.9 version. That's why I think you can use PrimeReact with peace of mind. As you know, React is a very stable framework. Therefore, there is not much change in our component structure.

https://tr.reactjs.org/blog/2018/03/29/ ... -16-3.html

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests