React Sonar
https://github.com/KyleAMathews/react-page-width
This is inspired by: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>