If you provide an empty dependency array in useEffect, the effect will run once after the initial render and will not run again for subsequent renders