1.2.2 • Published 4 years ago

@trbl/react-window-info v1.2.2

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

NPM Bundle Size Supported by TRBL

React Window Info

Lorem ipsum

Highlights

  • Lorem ipsum

    Lorem ipsum

Quick Start

Installation

$ npm i @trbl/react-window-info
$ # or
$ yarn add @trbl/react-window-info

Composition

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

  const WithWindowInfo = withWindowInfo(({ windowInfo }) => <div>{windowInfo}</div>);
  const UseWindowInfo = () => <div>{useWindowInfo()}</div>;

  const App = () => (
    <WindowInfoProvider>
      <WithWindowInfo />
      <UseWindowInfo />
      <WindowInfo>
        {(windowInfo) => <div>{windowInfo}</div>}
      <WindowInfo>
    </WindowInfoProvider>
  );

  export default App;

For working examples, see the demo app.

Demo

$ git clone git@github.com:trouble/react-window-info.git
$ yarn
$ yarn dev
$ open http://localhost:3000

Documentation

Contribution

Help us, or let us help you help us.

License

MIT Copyright (c) TRBL, LLC

1.2.2

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago