compatibility with react 0.4.0