Upgrade to React 0.12 compatibility