Skip to content

window not displaying electron code  #2

@MartinBarker

Description

@MartinBarker

im trying to create a very lightweight react.js / electron project, this example project looks like it would work, and you'd think it would display the react app.js text from this file:
https://github.com/achekulaev/minimal-electron-react-app/blob/master/src/app.js

const React = require('react');
const ReactDOM = require('react-dom');

class App extends React.Component {
  render () {
    return (
      <div><h1>Hello, React in Electron!</h1></div>
    )
  }
}

// Need to include render here for Babel to transcript JSX
ReactDOM.render(<App />, document.getElementById('root'));

but fi you git clone, npm i, and npm start, the react portion is empty and does not display anything
enter image description here

ive removed all the babel stuff and tried but still the react text does not get displayed, is there something stopping react from being used? everything looks to be in order so im unsure whats wrong here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions