setState for React that compares with the current state and only sets the state if changed.
github.com/kaspernj/set-state-compare
kaspernj/set-state-compare