works with more than one component in same web page