Change React.createFactory to take React.ComponentClass<P>