A component has two types of IDs: a local ID and a global ID.
Local ID: It is an ID that is only scoped to the component. A local ID is often unique but it’s not required to be unique.
global ID: Every component has a unique global id, which is the generated runtime-unique ID of the component instance.