Caching StyleBuilder function responses:
If you use functions that return styles and pass those styles down to another component, PureRenderMixin cannot prevent hat component from rerendering as each call will return a new object instance. By caching the response from these functions we can return the same object instance if you call the function with the same parameters.