Updated to React 0.12 - wrap component in a factory

Calling a component as a plain function is deprecated in React 0.12
https://gist.github.com/sebmarkbage/ae327f2eda03bf165261