You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added the ```parametrizeComponent``` function that takes in experiment information and a component and parametrizes the component with the experiment parameters as props.
2
+
- Added the ```parametrize``` function that takes in experiment information and a component and parametrizes the component with the experiment parameters as props.
3
3
- Added the requirement to pass in an array of experiment parameters as props to the Parametrize component and removed the experimentName prop.
2) Wrap the component where you want to implement your UI experiment with the parametrizeComponent function provided by the library along with an instantiated experiment class and the specific parameter names that you want to parametrize the component with. As an example,
27
+
2) Wrap the component where you want to implement your UI experiment with the parametrize function provided by the library along with an instantiated experiment class and the specific parameter names that you want to parametrize the component with. As an example,
let Signup =parametrizeComponent(exp, ['signupText'], React.createClass({
50
+
let Signup =parametrize(exp, ['signupText'], React.createClass({
51
51
render() {
52
52
return (
53
53
<div>
@@ -81,11 +81,11 @@ The implementation of all the components provided by this library are wrappers a
81
81
82
82
There are two primary higher-order components to use for parametrization.
83
83
84
-
**parametrizeComponent**: The ```parametrizeComponent``` function takes an instantiated experiment class, either an experiment name or a list of params, and a React component. It takes the given component and sets the deterministically and randomly assigned experiment parameters of the experiment class as props.
84
+
**parametrize**: The ```parametrize``` function takes an instantiated experiment class, either an experiment name or a list of params, and a React component. It takes the given component and sets the deterministically and randomly assigned experiment parameters of the experiment class as props.
**withExperimentParams**: The ```withExperimentParams``` function is used in combination with the base ```Parametrize``` component. It is useful when running an experiment with nested components, but generally the ```parametrizeComponent``` function should be preferred.
88
+
**withExperimentParams**: The ```withExperimentParams``` function is used in combination with the base ```Parametrize``` component. It is useful when running an experiment with nested components, but generally the ```parametrize``` function should be preferred.
0 commit comments