Two instances of WebViewer were created on the same HTML element

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version
8.7.4

Detailed description of issue
An error telling me that it connot render the component twice on the same html element.

As I’m following the simple setup for the react integration, I think this doesn’t need any code snippet.

All I’m doing basically is following the setup of the documentation, the only thing that might be different is the fact that I have Strict Mode enabled.

Hello user67,

React Strict mode renders the application twice, so it makes sense that the application would have this error.

You can read more about it here along with a potential solution: https://github.com/facebook/react/issues/24502

Basically, you need to clean up anything that has been instantiated before the application has rerendered.

Best regards,
Tyler