Created
June 2, 2018 12:11
-
-
Save yusinto/195df27bbba1044c3773a9c4a86db057 to your computer and use it in GitHub Desktop.
withFlags usage example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {withFlags} from 'ld-react'; | |
const Home = props => { | |
// flags are available via props.flags | |
return props.flags.devTestFlag ? <div>Flag on</div> : <div>Flag off</div>; | |
}; | |
export default withFlags(Home); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment