gaearon/react-hot-loader — pull request #27 by zachasme (2014-09-09 12:18:07+00:00)
Title: Allow lowercase React import and using an object reference

I have been importing React into a lowercase variable, and also using the harmony transform for using class syntax:

var react = require('react');

class ComponentName {
render() {
...
}
}

module.exports = react.createComponent(ComponentName.prototype);

both of which caused the HMR to not work. This commit allows both of these things to also work.