I try to pass a Component inside of UseEffect and down to setTimout to run only once on my welcome page and i dont get any error it just dosnt run it on my On Mount of the component.
const [intro, setIntro] = useState({ Welcome }); //Welcome is the Component whic should run and pass after 3 seconds ,it is imported as Welcome
useEffect(() => {
const int = setTimeout(() => {
return { intro };
}, 3000);
return () => clearTimeout(int);
}, []);