reactjs/express-react-views — pull request #10 by ajacksified (2014-10-20 18:46:57+00:00)
Title: Fixes loading modules from transpiled es6.

In many es6 transpilers, `export default Component` creates the syntax `module.export = { default: Component }`. This adds a check so that if a `require`d component contains a `default` property, it is used.

We could be paranoid and check `typeof component` to see if it's a `function` or an `object`, but that's probably overkill.