pushtell / react-ab-test

A/B testing React components and debug tools. Isomorphic with a simple, universal interface. Well documented and lightweight. Tested in popular browsers and Node.js. Includes helpers for Mixpanel and Segment.com.
MIT License
752 stars 112 forks source link

update documentation to include timing/availability of active variant via emitter #37

Open joeyfigaro opened 7 years ago

joeyfigaro commented 7 years ago

Can't quite nail down when emitter.getActiveVariant(<project name>) actually has something to return; I'm attempting to use the name of the variant as a class for a wrapper container. It's undefined on initial render.