All files / src/components pure.js

95.83% Statements 23/24
62.5% Branches 5/8
75% Functions 3/4
80% Lines 4/5
1 2 3 4 5 6 7 8 93x 18x   4x     3x    
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)
  }
}