title: Syntax error: Unexpected token in react project
body: <p>I'm new to <code>React</code> and was trying to integrate <code>materialui</code> component in sample project. And i'm facing following issue:  </p>
  
  <pre><code>Module build failed: SyntaxError: ./app/Tabs.jsx: Unexpected token
       (9:8)
  
     7 |
     8 | export default class IconLabelTabs extends Component {
  &gt;  9 |   state = {
       |         ^
    10 |     index: 0,
    11 |   };
    12 |
  </code></pre>
  
  <p>I referred few blogs and found   </p>
  
  <pre><code>{
      test: /.jsx?$/,
      loader: 'babel-loader',
      exclude: /node_modules/,
      query: {
        presets: ['es2015', 'react']
      }
  },
  </code></pre>
  
  <p>in webpack but still facing same error.</p>