react-bandit
v1.0.0
Published
Set of components to enable A/B testing
Downloads
1
Readme
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