
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
ab-positive
Advanced tools
A lightweight, flexible A/B testing component for React.
The goal of this project is to provide an approachable, functional split testing setup for React apps with minimal implementation overhead. AB+ exposes key callbacks for handling experiments and reporting on variants, which can be used for things like transmitting analytics events and performing further rendering operations.
AB+ uses localStorage to keep track of rendered variants so that a user will continue to see the same variant once it has been chosen.
Please note: this project is a work-in-progress. Feedback & contribution is greatly welcomed!
npm install --save ab-positive
import React from 'react';
import { BannerA, BannerB } from '../components';
import { Experiment, Variant } from 'ab-positive';
...
<Experiment name="homepage_banner" />
<Variant name="plain" component={BannerA} />
<Variant name="bold" component={BannerB} />
</Experiment>
ExperimentAn experiment manages a set of variants and dictates which variant is ultimately rendered.
You can use as many variants within an experiment as desired.
| prop (required) | type | description |
|--------|-----------|------|-------------|
| name | String | a name for the experiment being run |
VariantA variant provides a wrapped instance of your component which allows for props to be injected.
| prop (required) | type | description |
|--------|-----------|------|-------------|
| name | String | a name for the variant |
| component* | React component | the component to load within the variant |
npm test
WIP
MIT [LICENSE.md]
FAQs
A lightweight, approachable A/B testing component for React.
We found that ab-positive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.