Embedding large third-party React SDKs

I’m building a Foundry React app with Ontology SDK integration and trying to connect Box.com as a governed content layer for Foundry records.

I successfully:

  • create Box folders automatically from Foundry

  • store Box folder IDs/URLs on objects

My issue is the UI layer.

I tried embedding Box Content Explorer / Box UI Elements in both:

  • custom widgets

  • hosted React apps

but ran into CSP restrictions and major dependency/runtime issues with Box UI Elements in Foundry’s Vite/esbuild environment.

Question:
What is the recommended Foundry-native pattern for integrating external content systems like Box or SharePoint into React applications?

Should the UI generally be:

  • native Foundry React components + external APIs instead of embedding third-party UI SDKs?

Has anyone successfully embedded large third-party React SDKs in hosted Foundry apps?