Skip to main content
Participant
Jan 30, 2020 3:02 PM UTC
Question

ReactJS Component for "Document Cloud View SDK"

Is there a React component available to consume the AdobeDC viewer. I am working on a SPA developed in ReactJS and wanted to try this out. I have currently implemented it by loading the script programatically and then used the script code as in demo. Is there a cleaner way ? 

 

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

Feb 21, 2020 12:27 AM UTC

This is exactly why I chose to learn React over Angular or Vue. I want to make mobile apps, but also need a good JS framework for my web development career, and they just go together so well.

Translate
Community Manager
Feb 14, 2020 10:37 AM UTC

Thank you for using Adobe DC View SDK. We are working on building sample applications for consuming View SDK from variety of JS frameworks such as Angular and React. You should expect it to be available within next few months.

Translate
pableteaguero
Participant
May 12, 2020 3:46 AM UTC

Is there any advance on this?

Translate
Adobe Employee
May 12, 2020 7:38 AM UTC

The sample apps for React and Angular shall be available this month. 
Please look out for updates in this repo: https://github.com/adobe/dc-view-sdk-samples

Translate
rsinhaAuthor
Participant
Feb 5, 2020 5:13 AM UTC

Adding to above, even if i load the script " https://documentcloud.adobe.com/view-sdk/main.js" programmatically still react gives me an error on line -

var adobeDCView = new AdobeDC.View({ clientId: this.state.clientID, divId: "adobe-dc-view" });
 

" error 'AdobeDC' is not defined "

 

Thanks!

Translate
Participating Frequently
Feb 13, 2020 7:42 AM UTC

set this on windows as below :
window.AdobeDC = AdobeDC; 
and now you can use this on your component.

Translate