class Foo extends Component { bar = () => { // ... } }
https://babeljs.io/docs/plugins/transform-class-properties/
constructor(props) { super(props); this.func = this.func.bind(this); }
Is better if you care about performance.