react-experiments icon indicating copy to clipboard operation
react-experiments copied to clipboard

More Examples

Open rawls238 opened this issue 10 years ago • 11 comments

Would be great to have a few more concrete examples, especially examples with namespaces.

Would also be cool to have a simple interactive app that generates the jsx for a particular experiment definition

cc @mattrheault

rawls238 avatar Sep 26 '15 03:09 rawls238

I'm on it :+1:

mattrheault avatar Sep 28 '15 14:09 mattrheault

Yeah really stumbling to get this working based on current docs

okeydoke avatar Sep 06 '16 17:09 okeydoke

What roadblocks are you running into?

rawls238 avatar Sep 06 '16 17:09 rawls238

Trying to work my way through http://product.hubspot.com/blog/product-experimentation-with-planout-and-react.js but there seems to be some implied knowledge about configuring an experiment. Currently getting an error with uncaught exception: IMPLEMENT get not sure how I'm supposed to configure the experiment

okeydoke avatar Sep 06 '16 17:09 okeydoke

@okeydoke you should follow the instructions here for configuring the experiment: https://github.com/HubSpot/PlanOut.js

Let me know if you still have any issues.

rawls238 avatar Sep 06 '16 17:09 rawls238

My best guess from the error message is that you're extending Namespace and not SimpleNamespace when constructing your namespace.

rawls238 avatar Sep 06 '16 17:09 rawls238

Hmm quick question do I need both planout and react-experiments libraries? or can just include react-experiments?

okeydoke avatar Sep 06 '16 18:09 okeydoke

You can just include react-experiments but you would need to construct your own Experiment class that extends this class: https://github.com/HubSpot/react-experiments/blob/master/src/Experiment.js.

However, if you're not already using another experimentation framework it's highly recommended to use PlanOut. The main usecase for extending the class is to be able to use react-experiments with an experimentation framework you're already using

rawls238 avatar Sep 06 '16 21:09 rawls238

You can just include react-experiments but you would need to construct your own Experiment class that extends this class: https://github.com/HubSpot/react-experiments/blob/master/src/Experiment.js.

However, if you're not already using another experimentation framework it's highly recommended to use PlanOut. The main usecase for extending the class is to be able to use react-experiments with an experimentation framework you're already using

rawls238 avatar Sep 06 '16 21:09 rawls238

Okay thanks. Got it working now

okeydoke avatar Sep 06 '16 23:09 okeydoke

This probably should be clarified via an example. I will try to do this this week. Thanks for pointing out the potential confusion there @okeydoke

rawls238 avatar Sep 07 '16 00:09 rawls238