In this React challenge the UI of DOM, is only visible on the screen once, but due to being in development, React re-mounts the Counter component and that makes the setInterval
function to run twice ( if that’s not the case then why is it that setInterval
is running twice after each render? ). Why does the UI not conform the logic?