ismobilehook
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

version minified size minzipped size downloads

Demo

Demo Gif (visit GH page if not rendered)

Installation

For NPM

    npm i ismobilehook

For Yarn

    yarn add ismobilehook

Usage

    import React from "react";
    // importing the function
    import { isMobile } from "ismobilehook";

    const App = () => {
        return (
            <h1>
                // calling the function
                {isMobile() ? "Mobile" : "Desktop"} // returns a boolean value
            </h1>
        )
    }
    export default App;

Author - Varun Kedia (github.com/purplevarun)

Package Sidebar

Install

npm i ismobilehook

Weekly Downloads

1

Version

1.4.0

License

ISC

Unpacked Size

196 kB

Total Files

5

Last publish

Collaborators

  • purplevarun