react-redux-optimizely
v0.0.4
Published
React Higher Order Component(s) and helpers for running Optimizely experiments in a React/Redux Application.
Maintainers
Readme
react-redux-optimizely
React Component(s) and helpers for running Optimizely experiments in a React/Redux Application.
Installation
npm install --save react-redux-optimizelyConnecting an experiment
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);Configuring Optimizely
// todoExperiment Conditions
// todoActivate Experiment on render
// todoConfigure Redux Middleware
// todoGoal Tracking
// todo