0.3.0 • Published 7 years ago

react-contest v0.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Components

ExperimentProvider - global experiment engine

Control and handle all of your experiments at a high level

Variant - individual a/b testing based on the experiment name you'll figure out if the test should be shown or hidden

Contest

Super tiny A/B testing platform for your own components.

<Experiment
  name="showAdOnDetailPage"
  onSelect={variant => {
    console.log(`${variant.name} viewed`)
  }}
  variants={[
    {
      name: 'a',
      chance: 40,
      component: <A />
    },
    {
      name: 'b',
      chance: 30,
      component: <B />
    },
    {
      name: 'c',
      chance: 30,
      component: <C />
    },
  ]}
/>
0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago