rawls238 / react-experiments

React components for implementing UI experiments
319 stars 20 forks source link

More Examples #10

Open rawls238 opened 9 years ago

rawls238 commented 9 years ago

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

mattrheault commented 9 years ago

I'm on it :+1:

okeydoke commented 8 years ago

Yeah really stumbling to get this working based on current docs

rawls238 commented 8 years ago

What roadblocks are you running into?

okeydoke commented 8 years ago

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

rawls238 commented 8 years ago

@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 commented 8 years ago

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

okeydoke commented 8 years ago

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

rawls238 commented 8 years ago

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 commented 8 years ago

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

okeydoke commented 8 years ago

Okay thanks. Got it working now

rawls238 commented 8 years ago

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