MarshallOfSound / react-electron-web-view

A simple wrapper to make Electrons WebView compatible with React
MIT License
65 stars 30 forks source link

need help on webview #4

Closed rshandy closed 7 years ago

rshandy commented 7 years ago

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: screen shot 2017-01-16 at 5 01 49 pm

MarshallOfSound commented 7 years ago

I don't know what language / syntax you are trying to use but you are missing a comma between 'googleframe' and src