(comp: Comp): void Adds a component or anonymous component.
(id: string): void Removes a component without checking for dependencies
(comp: Comp): void Check if any id of a component's require is not present in _compsIds, if
there's, throw an error.
param comp- The component for checking.
(compId: string): void Check if any component (in _compStates) is dependent of compId, if
there's, throw an error.
param compId- Component ID for searching.
}