4 ms·
Yeah, they answer this in the FAQ too. > In modern browsers, the raw performance of closures compared to classes doesn’t differ significantly except in extreme
by dceddia 8y ago
Yeah, they answer this in the FAQ too.
> In modern browsers, the raw performance of closures compared to classes doesn’t differ significantly except in extreme scenarios.
https://reactjs.org/docs/hooks-faq.html#are-hooks-slow-because-of-creating-functions-in-render https://reactjs.org/docs/hooks-faq.html#are-hooks-slow-becau...