All files / src/components pure.js

95% Statements 19/20
66.67% Branches 4/6
75% Functions 3/4
80% Lines 4/5
1 2 3 4 5 6 7 8 92x 8x   2x     2x    
import isEqual from 'lodash.isequal'
import {Component} from 'react'
 
export default class Pure extends Component {
  shouldComponentUpdate (newProps, newState) {
    return !isEqual(newProps, this.props) || !isEqual(newState, this.state)
  }
}