detect-resize
Slightly refactored version of https://github.com/sdecima/javascript-detect-element-resize targeting universal React applications. Will not throw if imported (ES6) on the server.
Install
npm i -S detect-resize
How to use
Should work the same as javascript-detect-element-resize without throwing errors if used in a server environment.
const resizeElement = documentconst handleResize = { console }