Couillard
Couillard is a small trebuchet you aim and launch at your users. It's a lean A/B testing tool to validate hypotheses and determine what to build.
More About Lean A/B Testing
Install
yarn add couillard
Usage
const saveMetrics = metrics =>
fetch('...', {
method: 'POST',
...,
body: metrics
})
aim('welcome', 50, ['A', 'B'], saveMetrics)
const WelcomeA = launch('welcome', 'A', saveMetrics, props => (
<p>
Welcome I'm experiment A, {props.name},
<button onClick={hit('welcome', saveMetrics)}>Click Me</button>
</p>
))
const WelcomeB = launch('welcome', 'B', saveMetrics, props => (
<p>
Welcome I'm experiment B, {props.name},
<button onClick={hit('welcome', saveMetrics)}>Click Me</button>
</p>
))
const Home = () => (
<div class={style.home}>
<h1>Home</h1>
<WelcomeA name="Jannette" />
<WelcomeB name="John" />
</div>
)
export Home