In my example, it's very precise that a template _is_ definitely a function. And conceptually I still think of it as function.
For your example I'd call it "squares" not because I don't hate it, but I don't think squares has something to do with "component"