react nextjs isMobile on statically generated pages
Jun 30, 2023 · 1 min read · 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); ...
Join discussion