Skip to content

A super tiny A/B (265 bytes!) testing platform for your components.

Notifications You must be signed in to change notification settings

peterpme/react-contest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Contest

May the best component win! 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 />
    },
  ]}
/>

About

A super tiny A/B (265 bytes!) testing platform for your components.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published