added support for react 0.12.x