"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.shouldRender = shouldRender;

var _deepEqual = require("deep-equal");

var _deepEqual2 = _interopRequireDefault(_deepEqual);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function shouldRender(comp, nextProps, nextState) {
  var props = comp.props,
      state = comp.state;

  return !(0, _deepEqual2.default)(props, nextProps) || !(0, _deepEqual2.default)(state, nextState);
}