react-decorators
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-decorators", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A collection of higher-order React components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,13 @@ # React Decorators | ||
*Note: The initial project structure is forked from the | ||
[React Component Starter Kit](https://github.com/kriasoft/react-component-starter)* | ||
### How to Install | ||
[](https://www.npmjs.org/package/react-decorators) | ||
```shell | ||
$ npm install react-decorators --save | ||
``` | ||
### How to Use | ||
@@ -7,0 +18,0 @@ |
@@ -17,3 +17,4 @@ /*! | ||
if (viewport.width !== window.innerWidth || viewport.height !== window.innerHeight) { | ||
EE.emit(RESIZE_EVENT, {width: window.innerWidth, height: window.innerHeight}); | ||
viewport = {width: window.innerWidth, height: window.innerHeight}; | ||
EE.emit(RESIZE_EVENT, viewport); | ||
} | ||
@@ -20,0 +21,0 @@ } |
5730
56
45