update render to react 0.12 api