1.0.0 • Published 7 years ago

react-bandit v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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