All files / src/components pure.js

72.73% Statements 40/55
40.43% Branches 19/47
64.71% Functions 11/17
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 92x 2x   2x     2x    
import isEqual from 'lodash/isEqual'
import {Component} from 'react'EIIIIEEI
 
export default class Pure extends Component {
  shouldComponentUpdate (newProps, newState) {
    return !isEqual(newProps, this.props) || !isEqual(newState, this.state)
  }
}