But why doesn't the actual type work? Why musn't it be const?

Using just "render" seems to infer the types correctly?