React Component(s) and helpers for running Optimizely experiments in a React/Redux Application.
npm install --save react-redux-optimizely
import React from 'react';
import connect from 'react-redux-optimizely';
let Header = ({ variant, isActive }) => {
if (variant) {
return (<h1>Variant</h1>);
}
return (<h1>Base</h1>);
};
export default connect('MY_EXP_NAME')(Header);
// todo
// todo
// todo
// todo
// todo