RubyLouvre/anu

View on GitHub
scripts/build/shallowCompare.index.js

Summary

Maintainability
A
55 mins
Test Coverage

import {shallowEqual} from "react-core/shallowEqual";
export default function shallowCompare(instance, nextProps, nextState) {
    var a = shallowEqual(instance.props, nextProps); 
    var b = shallowEqual(instance.state, nextState);
    return !a || !b;
}