Components that us id selectors

The power of components is that you can duplicate much of the html and only edit image src or anchor href to customize each instance to a particular purpose.

That seems to work well enough as long as the component does not employ the use of the id selector (class or element only).

Because as soon as you have two instances of the component on the same page, there are now duplicate elements with the same id… which is bad and causes no end of confusing behavior.

Am i missing something or has PG yet to implement a way to handle unique id for component instances?