4 ms·
Yes, and they explain it as well. Doing that leads to the component re-rendering immediately without rendering any child components. This should be faster than
by jannes 4y ago
Yes, and they explain it as well. Doing that leads to the component re-rendering immediately without rendering any child components.
This should be faster than useEffect which only executes after the entire render has been committed to the DOM.