UNPKG

anujs-stb

Version:

a React16-compact mini framework

8 lines (6 loc) 258 B
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; }