Integrating a Viewer into existing React application

What do the docs mean when recommending to utilize modern development practices to incorporate OHIF Viewer within my application?

We recommend utilizing modern development practices and incorporating OHIF viewer within your application using a more modular and integrated approach, such as leveraging bundlers, other UI components, and frameworks.
:link: in the Deployment section of the docs

  • Attempting to understand the intended workflow to use modular approach for integrating OHIF Viewer into my React application.
  • OHIF Version 3

Currently, I have tried to copy paste a bunch of the stuff from platform/app into my application as well as migrating some of the webpack configurations to vite (as that’s what I’m using in my application) to allow for integration of the viewer. However, npm install and npm run dev is not helping so I tried yarn install and that’s getting stuck at

error D:\parent-react-app\node_modules\@kitware\vtk.js: Command failed.
Exit code: 1
Command: patch-package
Arguments:
Directory: D:\parent-react-app\node_modules\@kitware\vtk.js

Moreover, the overall concept of integrating in a modular approach is also not making sense to me due to lack of documentation (or my failure in finding it - in which case I would greatly appreciate pointers to it).

Thanks!