Module: react

React helper module for active-keys. Adds `.activeKeys` to `state`.
Source:
Examples
// decorator
import keyWatcher from 'active-keys/dist/react';
@keyWatcher
class MyComponent extends Component {
  componentWillUpdate(nextProps, nextState) {
    console.log(Object.keys(nextState.activeKeys));
  }
}
// non-decorator
import keyWatcher from 'active-keys/dist/react';
class MyComponent extends Component {
  componentWillUpdate(nextProps, nextState) {
    console.log(Object.keys(nextState.activeKeys));
  }
}
MyComponent = keyWatcher(MyComponent);