most solutions you'll find for determining whether a user is viewing your web app on mobile will not work on statically generated pages this is the cleanest solution i could come up with const [isMobile, setIsMobile] = React.useState<number>(false); ...
codetiger.hashnode.dev1 min readNo responses yet.