Fixing React 0.12.x deprecation warning