[++] index attr in each compo