title: Electron React App
body: <p>Im trying to make a Desktop App with Electron and React.</p>
  
  <p>Im allerdings getting startet and the most components are working, but in my React component I need to make a new Funktion like: </p>
  
  <pre><code>add = () =&gt; {
    //this.setState({active: !this.state.active})
  }
  </code></pre>
  
  <p>But after adding this 3 (2) Lines i get the error: </p>
  
  <blockquote>
    <p>app/app.js: Unexpected token (17:11) while parsing file: .../app/app.js</p>
  </blockquote>
  
  <p>this is my package.json so far:</p>
  
  <pre><code>{
  "name": "rac",
  "productName": "rac-desktop",
  "version": "1.0.0",
  "description": "desktop",
  "main": "main.js",
  "scripts": {
    "start": "electron main.js",
    "watch": "watchify app/app.js -t babelify -o public/js/bundle.js -- debug --verbose"
  },
  "author": "timo",
  "license": "MIT",
  "dependencies": {
   "axios": "^0.16.2",
   "babel-preset-es2015": "6.24.1",
   "babel-preset-react": "6.24.1",
   "babelify": "7.3.0",
   "classnames": "2.2.5",
   "electron-prebuilt": "^1.4.13",
   "electron-reload": "^1.2.2",
   "react": "^16.0.0",
   "react-dom": "^16.0.0",
   "semantic-ui-react": "^0.75.1"
  } }
  </code></pre>
  
  <p><a href="https://github.com/ZeroSoulEater/electronReactDesktopApp" rel="nofollow noreferrer">The Repo</a></p>