How to use the @flopflip/react-broadcast.injectFeatureToggle function in @flopflip/react-broadcast

To help you get started, we’ve selected a few @flopflip/react-broadcast examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tdeekens / flopflip / demo / src / App.js View on Github external
<button disabled="{props.isIncrementing}" type="button">
    Increment
  </button>
);

const FeatureToggledIncrementSyncButton = injectFeatureToggle(
  INCREMENT_SYNC_BUTTON,
  'syncButtonStyle'
)(IncrementSyncButton);

const Counter = props =&gt; (
  <div>
    <h1>Count around</h1>
    <p>Count: {props.count}</p>

    <div>
      
      <br>
      </div></div>

@flopflip/react-broadcast

A feature toggle wrapper to use LaunchDarkly with React

MIT
Latest version published 5 months ago

Package Health Score

77 / 100
Full package analysis