Nit: `//` unless docblock.

Also, since we're only using this in `findComponentRoot`, would it make sense to name it something a little more relevant and then skip the assignment in the function? It's not an allocation in the same sense, but memory needs to be mapped so might as well avoid it entirely.