@multimatic/react-window-info
v0.0.3
Published
The window, not Windows.
Downloads
4
Readme
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