UNPKG

react-ab

Version:

Simple declarative and universal A/B testing component for React.

50 lines (28 loc) 788 B
### 0.5.0 (2017-09-16) * Fix deprecation warnings. ### 0.4.6 (2016-09-08) * Allow empty variant children. ### 0.4.5 (2016-03-16) * Default browser cookies to expire far in the future. ### 0.4.4 (2015-11-11) * Add missing `displayName`. ### 0.4.3 (2015-10-16) * React 0.14. ### 0.4.2 (2015-08-25) * Remove reliance on setState. ### 0.4.1 (2015-08-25) * Fix text node bug. ### 0.4.0 (2015-08-24) * Add context passing of props for convenience. * Rename `del` to `clear`. ### 0.3.1 (2015-01-23) * Fix bug when there are multiple children och Variant. ### 0.3.0 (2015-01-23) * Add random prop. * Make isomorphic. * Add chooseVariant and clearCookie methods. * Add tests. ### 0.2.0 (2015-01-21) * Upgrade to React 0.12. * Add getVariant method. * Remove useless elements.