Updated for React 0.11.1