react-shallow-equal ·
Efficient shallow equality algorithm for React and React Native.
This is a fork of lelandrichardson/shallow-element-equals.
Table of Contents
Install
yarn add react-shallow-equal # or npm install --save react-shallow-equal
Usage
import React PureComponent from 'react';import propsEqual from 'react-shallow-equal'; // ... { return !;} // ...
API
propsEqual(a, b, options)
elementsEqual(a, b)
stylesEqual(a, b)
See lelandrichardson/style-equal