4 ms·
This compiles poorly and has a performance cost, it turns out. Doing: constructor(props) { super(props); this.func = this.func.bind(this); } Is better i
by TheSisb2 9y 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.
- ConAntonakos 9y agoJust curious: are there tests proving this?