updated for react 0.12