Hacker News new | ask | show | jobs
by TheSisb2 3352 days ago
This compiles poorly and has a performance cost, it turns out. Doing:

constructor(props) { super(props); this.func = this.func.bind(this); }

Is better if you care about performance.

1 comments

Just curious: are there tests proving this?