Transforming components in function syntax