Update for React >= 0.5