// App composition — flow nou, cu picks din canvas const { useState: useStateApp, useEffect: useEffectApp } = React; const App = () => { const [isMobile, setIsMobile] = useStateApp(false); useEffectApp(() => { const mq = () => setIsMobile(window.innerWidth < 760); mq(); window.addEventListener("resize", mq); return () => window.removeEventListener("resize", mq); }, []); return (