---
title: "Discussion on \"Why your A/B test variation won't stick on a React input\" | Hashnode"
description: "Discussion on \"Why your A/B test variation won't stick on a React input\". You set the value and React wipes it, or onChange never fires. How to set a React controlled input from an A/B test so the app actually reacts."
url: "https://hashnode.com/posts/react-controlled-input-ab-test/6a3c7b6a5979e4c952410fcc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why your A/B test variation won't stick on a React input](https://arafatcro.hashnode.dev/react-controlled-input-ab-test?utm_source=hashnode&utm_medium=feed)

You set the value and React wipes it, or onChange never fires. How to set a React controlled input from an A/B test so the app actually reacts.

Jun 25 · 6 min read · arafatcro.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#conversion-rate-optimization](https://hashnode.com/tag/conversion-rate-optimization)
-   [#abtesting](https://hashnode.com/tag/abtesting)
-   [#react](https://hashnode.com/tag/react)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Arafat Islam](https://hashnode.com/@arafatcro)

@arafatcro · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@arafatcro)

Freelance CRO developer building client-side A/B tests

Freelance CRO developer. I write A/B test variant code that runs on top of live, revenue-critical pages, so the whole job comes down to one rule: don't break it.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
