I'm working on embedding a web page on an electron-react app.
Here's what I have in the component's file among other things-
let webview = require('react-electron-web-view');
& render looks liek this-
render(){
let googleFrame = webview({id: 'googleframe' src: 'https://www.google.com'});
return React.DOM.div({ id:"container"},
googleFrame,
React.DOM.button({className:'button close', onclick: this.onCloseClick()}, Close)
)
}
I'm working on embedding a web page on an electron-react app. Here's what I have in the component's file among other things- let webview = require('react-electron-web-view'); & render looks liek this- render(){ let googleFrame = webview({id: 'googleframe' src: 'https://www.google.com'}); return React.DOM.div({ id:"container"}, googleFrame, React.DOM.button({className:'button close', onclick: this.onCloseClick()}, Close) ) }
it complains in run-time, says: