JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26625F
  • License ISC

Detects an element size changes

Package Exports

  • react-sonar

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-sonar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Sonar

This is inspired by: https://github.com/KyleAMathews/react-page-width

React component that detects when an wrapped element resizes

Install

npm install react-sonar

Usage

var ReactSonar = require('react-sonar');

<ReactSonar handleResize={this.handleResize}>
...
</ReactSonar>