3 ms·
Is it a poor pattern to use #bind a lot instead of this or that? I tend to put most of the code in procedures like functions and bind it to whatever context I n
by tabeth 10y ago
Is it a poor pattern to use #bind a lot instead of this or that? I tend to put most of the code in procedures like functions and bind it to whatever context I need, if not the regular this.
- OSButler 10y agoIf you're using React and you're not using arrow functions, then it's very common to see bind() references.