how to show component only in desktop but not in mobile in reactjs code example
Example: reactjs javascript is mobile and desktop
const detectMobile = ()=> window.innerWidth < 768;
const detectMobile = ()=> window.innerWidth < 768;