Use react 0.8.0
Throw a proper error when something goes wrong, to stop further tasks being run.