accept react 0.12.x as well