Skip to content

eeeps/ac404-cloud-widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudinary widget in react

This project was bootstrapped with Create React App


Two examples on with the pop-up modal, one trying to get the widget inline

The component WidgetModal.js shows how I have integrated the widget to be run on a button click And that works fine

Un-comment the component App.js/WidgetInline.js to see what happens when I add the widget attr - inline container

 inlineContainer: document.getElementById('myWidgetContainer'),

I get the function to launch the widget

componentDidMount() {
        this.uploadWidget() 
    }

And it sort of gets halfway, it sort of mounts like the modal but stays grey and these error in the console

Screen Shot 2018-10-21 at 09.38.06.jpg

I tried using React.createRef() to try grab the DOM element but no joy there

Any advice, improvements on either method would be great

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.3%
  • HTML 17.7%