Renamed registerComponent to component, now constructor and getter