by tlrobinson · 9y ago · 0 comments
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.