All files / src/components pure.js

94.74% Statements 18/19
0% Branches 0/2
66.67% Functions 2/3
80% Lines 4/5
1 2 3 4 5 6 7 8 92x 2x   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)
  }
}