Skip to main content
Participant
January 30, 2020
Question

ReactJS Component for "Document Cloud View SDK"

  • January 30, 2020
  • 3 replies
  • 5303 views

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 has been closed for replies.

3 replies

February 21, 2020

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.

Community Manager
February 14, 2020

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.

pableteaguero
Participant
May 12, 2020

Is there any advance on this?

Adobe Employee
May 12, 2020

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

rsinhaAuthor
Participant
February 5, 2020

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.clientIDdivId: "adobe-dc-view" });
 

" error 'AdobeDC' is not defined "

 

Thanks!

Participating Frequently
February 13, 2020

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