React18 Useeffect Render Twice Forked Codesandbox

React18 Useeffect Render Twice Forked Codesandbox