make compatible with react 0.10