Couldn't we just use the registerComponent method?