invokeRef added to renderAs