๐ Bug HuntRX React Hardโก+35 XP
Infinite Loop
This component re-renders infinitely.
๐ Find the bug
1
useEffect(() => {2
setData(fetchData());3
});๐ The bug is on line 2
This component re-renders infinitely.
useEffect(() => { setData(fetchData());});