0.0.2 • Published 5 months ago

@multimatic/react-window-info v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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