const ErrorComponent = () => try // code that might throw an error catch (error) console.error(error);
That’s the thing about Sorta Stupid Reacts —I never learn. I’ll keep consuming garbage content and yelling into the void, and you’ll keep reading it because misery loves company. Sorta Stupid Reacts
useEffect(() => setB(a + 1); , [a]); // Infinite loop ensues const ErrorComponent = () => try // code