register(name, component) {
        if (typeof name === 'function') {
            return this.context.registrar.install(component);
        }

        const names = concat([], name);

        if (this.looksLikeSimpleCallback(component)) {
            return this.context.registrar.install(
                createFunctionalComponent(names, component)
            );
        }

        return this.context.registrar.install(component, names);
    }
Register the component.

@param {string | string[] | FunctionalComponent} name
@param {Component} component