react-responsive

  • Version 9.0.0-beta.4
  • Published
  • 136 kB
  • 4 dependencies
  • MIT license

Install

npm i react-responsive
yarn add react-responsive
pnpm add react-responsive

Overview

Media queries in react for responsive design

Index

Variables

variable Context

const Context: any;

    variable MediaQuery

    const MediaQuery: any;

      Functions

      function toQuery

      toQuery: (obj: Partial<MediaQueryAllQueryable>) => string;

        function useMediaQuery

        useMediaQuery: (
        settings: MediaQuerySettings,
        device?: MediaQueryMatchers | undefined,
        onChange?: (_: boolean) => void
        ) => boolean;

          Namespaces

          namespace shallow-equal

          module 'shallow-equal' {}

            function shallowEqualArrays

            shallowEqualArrays: (arr1: primitives[], arr2: primitives[]) => boolean;

              function shallowEqualObjects

              shallowEqualObjects: (obj1: primitiveObject, obj2: primitiveObject) => boolean;

                interface primitiveObject

                interface primitiveObject {}

                  index signature

                  [key: string]: primitives;

                    type primitives

                    type primitives = string | number | boolean | bigint | undefined | symbol | null;

                      Package Files (6)

                      Dependencies (4)

                      Dev Dependencies (28)

                      Peer Dependencies (1)

                      Badge

                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/react-responsive.

                      • Markdown
                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/react-responsive)
                      • HTML
                        <a href="https://www.jsdocs.io/package/react-responsive"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>