Make it (almost) work with React 0.11.0

One test failure but this is probably because of incorrect tests.