I\'m using ES6 classes with Babel. I have a React component that looks like this:
import { Component } from \'react\'; export default class MyReactComponent ext
Code to accompany Nathans answer:
import { Component } from 'react'; export default class MyReactComponent extends Component { constructor(props) { super(props); this.state = { foo: true, bar: 'no' }; } render() { return ( {this.state.bar} ); } }