pushtell / react-ab-test

A/B testing React components and debug tools. Isomorphic with a simple, universal interface. Well documented and lightweight. Tested in popular browsers and Node.js. Includes helpers for Mixpanel and Segment.com.
MIT License
752 stars 112 forks source link

support React v16.0 #42

Open mattotodd opened 7 years ago

mattotodd commented 7 years ago

Table of Contents

Description

uses 'create-react-class' module instead of React.createClass per 15.5 migration notes

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

robhuzzey commented 6 years ago

+1 to this... wouldn't we want to bump the package up as a major change? I assume this is a breaking change?

kiwidamien commented 6 years ago

:+1:, current version has breaking errors when I use it. I notice the last comment is in November, is anyone currently working on PRs in this repo?

kiwidamien commented 6 years ago

For anyone else with this issue, the problem is with the debugger using createClass to make its component. A simple work-around if you are not using the debugger is to simply delete the line

module.exports = {
  Experiment: require("./lib/Experiment"),
  Variant: require("./lib/Variant"),
  emitter: require("./lib/emitter"),
  //experimentDebugger: require("./lib/debugger"), <-- remove this line.
  mixpanelHelper: require("./lib/helpers/mixpanel"),
  segmentHelper: require("./lib/helpers/segment")
};
jacobc-eth commented 6 years ago

Is there any update on this PR?

okovpashko commented 6 years ago

@jacobcantele I see no activity from maintainers in this repo. My requests #40 and #41 were created about 4 months ago and there's still no activity also. I start thinking about creating a fork and fixing all issues there along with some new features.

jacobc-eth commented 6 years ago

I would 100% support that.

moretti commented 6 years ago

Any update on this? Maybe pushtell (cc @wehriam @JonShort) could update the README, if they're looking for maintainers. Would be a shame to fork and publish it as separate npm module just to support React 16.

JonShort commented 6 years ago

I'd recommend forking the library, I was made a contributor to one of the pushtell repos a while ago after a PR i did, but i've had to fork their projects since because I don't think they're operating anymore.

Luckily their repos are pretty easy to work with, I'm just not sure who has publish rights for the npm package/s.

moretti commented 6 years ago

I published a new version under @mavelapp/react-ab-test compatible with React 16: https://github.com/marvelapp/react-ab-test

okovpashko commented 6 years ago

@moretti did you publish your fork on NPM?

moretti commented 6 years ago

@okovpashko yeah https://www.npmjs.com/package/@marvelapp/react-ab-test I rewrote the existing tests in jest and upgraded the deps. I’ll see if I can fix the existing issues when I have some time.