UNPKG

decca

Version:

Render interfaces using pure functions and virtual DOM, kinda

12 lines (9 loc) 220 B
/* * Compares two elements. */ function same (left, right) { return left === right || (left.tag === right.tag && shallowEqual(left.children, right.children) && shallowEqual(left.props, left.props)) }