next-ultra
v1.1.8
Published
> Ultra pack utils for next.js by RedProject
Downloads
56
Readme
next-ultra
Ultra pack utils for next.js by RedProject
Install
npm install --save next-ultra
Usage
###isMobileDevice (server)
Check is mobile device from user agent return Promise‹boolean›
import {isMobileDevice} from "next-ultra/utils"
export default async function Page() {
const isMobile = isMobileDevice()
return isMobile ? <div>Device is mobile</div> : <div>Device is PC</div>
}
License
MIT © RedProjectDev