# Compatibility with React 18.1.0 version, it seems not work with that version

**URL:** <https://pdfjs.community/t/compatibility-with-react-18-1-0-version-it-seems-not-work-with-that-version/1906>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [July 27, 2022, 10:30pm UTC](https://pdfjs.community/t/compatibility-with-react-18-1-0-version-it-seems-not-work-with-that-version/1906 "2022-07-27T22:30:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cruzromerobrandon241](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cruzromerobrandon241](https://pdfjs.community/u/cruzromerobrandon241)\
**Post date:** [July 27, 2022, 10:30pm UTC](https://pdfjs.community/t/compatibility-with-react-18-1-0-version-it-seems-not-work-with-that-version/1906/1 "2022-07-27T22:30:10Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**

**Detailed description of issue**  
Hello team im trying to install the @pdftron/pdfjs-express-viewer": “^8.7.0”, but it doesnt work with the react 18.1.0 version. When i try to run the code “npm i @pdftron/pdfjs-express-viewer” show me errors about Conflicting peer dependency.

Im working with an example with React 16.6.0 and it works. But i need in my project with React 18.1.0  
**Expected behaviour**

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/bfdb7e79c54938556204688b1bcf2bd6e020a1d8.png)

**Does your issue happen with every document, or just one?**  
Im trying to force the install with the next command “npm install --legacy-peer-deps @pdftron/pdfjs-express-viewer” but dont work

**Link to document**  
i dont have right now

**Code snippet**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [July 27, 2022, 10:30pm UTC](https://pdfjs.community/t/compatibility-with-react-18-1-0-version-it-seems-not-work-with-that-version/1906/3 "2022-07-27T22:30:15Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Integrating React with PDF.js Express Viewer JavaScript PDF library - 3. Place WebViewer into a component](https://pdfjs.express/documentation/get-started-viewer/react#3.-place-webviewer-into-a-component)
- [Integrating PDF.js Express Plus with React - 3. Place WebViewer into a component](https://pdfjs.express/documentation/get-started/react#3.-place-webviewer-into-a-component)
- [Migrating from PDF.js Express to PDFTron - 1. Install PDFTron via NPM](https://pdfjs.express/documentation/learn-more/pdfjs-express-to-pdftron.8#1.-install-pdftron-via-npm)

APIs:
- [Core - enableFullPDF()](https://pdfjs.express/api/Core.html#.enableFullPDF__anchor)
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [UI - dangerouslySetNoteTransformFunction(noteTransformFunction)](https://pdfjs.express/api/UI.html#.dangerouslySetNoteTransformFunction__anchor)

Forums:
- [Pdf js viewer throwing error on Firefox](https://pdfjs.community/t/pdf-js-viewer-throwing-error-on-firefox/429/1)
- [Watermark not disappearing despite valid license](https://pdfjs.community/t/watermark-not-disappearing-despite-valid-license/1612/1)
- [Am getting this error when loading WebViewer with Vue application](https://pdfjs.community/t/am-getting-this-error-when-loading-webviewer-with-vue-application/1319/1)

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [July 28, 2022, 10:05pm UTC](https://pdfjs.community/t/compatibility-with-react-18-1-0-version-it-seems-not-work-with-that-version/1906/4 "2022-07-28T22:05:39Z")

</div>

Hello cruzromerobrandon241,

I was able to install React 18.1 and get it to work with PDFJS Express. Here is the zip file with the sample updated:  
[pdfjs-express-react-sample-react-18.zip](https://pdfjs.community/uploads/short-url/6InUd8iou6MMAqglTV07An2v6IQ.zip) (4.0 MB)

Best regards,  
Tyler Gordon  
Web Development Support Engineer  
PDFTron

---

<div class="post-metadata">

**Author:** ![cruzromerobrandon241](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cruzromerobrandon241](https://pdfjs.community/u/cruzromerobrandon241)\
**Post date:** [September 2, 2022, 6:23am UTC](https://pdfjs.community/t/compatibility-with-react-18-1-0-version-it-seems-not-work-with-that-version/1906/5 "2022-09-02T06:23:55Z")

</div>

Hello Tyler Gordon, thanks a lot bruh i will take a look 🙏, have a nice day.!
