@multimatic/react-window-info

0.0.3 • Public • Published

Modify by Multimatic

React Window Info

The window, not Windows.

Quick Start

Installation

$ yarn add @multimatic/react-window-info

Compositon

  import React from 'react';
  import { WindowInfoProvider, withWindowInfo } from '@multimatic/react-window-info';

  const MyComponent = withWindowInfo(() => return <div>My Component</div>);

  const App = () => {
    return (
      <WindowInfoProvider>
        <MyComponent>
          ...
        </MyComponent>
      </WindowInfoProvider>
    )
  }

  export default App;

Demo

To demo locally, clone the repo and

$ yarn install
$ npm run dev
$ open http://localhost:3000

Documentation

All available props can be found via the references below:

License

MIT Copyright (c) Multimatic

Package Sidebar

Install

npm i @multimatic/react-window-info

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

17.5 kB

Total Files

4

Last publish

Collaborators

  • ferdin
  • rapatel-mm