Use shallowEqual and isEmpty as much as possible by itsmichaeldiego · Pull Request #540 · google-map-react/google-map-react
PR #440 Inspired me to use shallowCompare as much as possible to compare objects, mostly between props and nextProps or prevProps.
Also, we were doing many checks by !== undefined or === undefined, where we could just check with isEmpty, who also checks for the object being an empty string ('') or null. Which makes the code more solid.