What is Best-Practice? ConfigScript vs iFrameMessaging

I am seeking to understand the best-practice for our app as far as frontend code goes

do I want to pass all my app in the config script

or use iframe messaging

I wonder which pattern is more prevalent or preferred

Hello allen.joslin,

Thank you for reaching out!

We have a React sample here that shows the most common way of integrating WebViewer: GitHub - PDFTron/webviewer-react-sample: Sample to demonstrate integrating WebViewer into React

Let me know if this works for you,
Best regards,
Tyler