How to use OHIF Viewer as React Component

Hello,
I want to use OHIF viewer as a component in my React app.

I tried to use the OHIF/Viewer NPM package in my react app as a viewer, but it was giving a minified react 321 error. How can I use this/viewer in my React App as a Component to display proposed images and customize it according to my needs?

Or maybe you can build your application on top of OHIF code instead of using it as a component.

OHIF is a react application, you can have it as an iframe embeded in your react app, see this one iframe | OHIF

OHIF is not a library