react-bandit

1.0.0 • Public • Published

react-bandit

WARNING: NOT READY

react-bandit helps you do A/B testing.

Example:

import React, {Component} from 'react'
import Bandit from 'react-bandit'
 
class MyComponent extends Component {
  render() {
    return (
      <div>
        <span>Subscribe to our mailing list!</span>
        <Bandit.Test name="mailing-list-button">
          <Bandit.Arm>
            <button style={{background: red}}>
              SUBSCRIBE
            </button>
          </Bandit.Arm>
          <Bandit.Arm>
            <button style={{background: 'blue'}}>
              SUBSCRIBE, PLEASE
            </button>
          </Bandit.Arm>
        </Bandit.Test>
      </div>
    )
  }
}

License

react-bandit is licensed under ISC license.

Tim Marinin, 2017

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-bandit

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Last publish

      Collaborators

      • marinintim