Skip to content

Instantly share code, notes, and snippets.

@yusinto
Created June 2, 2018 12:11
Show Gist options
  • Save yusinto/195df27bbba1044c3773a9c4a86db057 to your computer and use it in GitHub Desktop.
Save yusinto/195df27bbba1044c3773a9c4a86db057 to your computer and use it in GitHub Desktop.
withFlags usage example
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