How to use next-useragent - 1 common examples

To help you get started, we’ve selected a few next-useragent examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tokuda109 / next-useragent / example / pages / index.js View on Github external
<p>useragent: { useragent }</p>
        <p>isServer: { isServer ? 'y' : 'n' }</p>

        { ua.isMobile ? (
        <p>Mobile</p>
        ) : (
        <p>Desktop</p>
        ) }

        <a>Go to second.</a>
      
    )
  }
}

export default withUserAgent(IndexPage)

next-useragent

next-useragent parses browser user-agent strings for next.js.

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular next-useragent functions