The view obtained from the Captcha can be placed where you want as <CaptchaView data-testid="login-captcha" />.
The isCaptchaVisible variable is used to show or hide the captcha. When using this variable, it should be checked whether the captcha is validated with !captchaValidated before use.