Fixed newChildComponent method so that it accepts a config and passes it to the new component's constructor.