JSPM

  • Created
  • Published
  • Downloads 17295
  • Score
    100M100P100Q146797F
  • License MIT

The DevCycle React SDK used for feature management.

Package Exports

  • @devcycle/react-client-sdk
  • @devcycle/react-client-sdk/package.json

Readme

DevCycle React SDK

The React SDK for DevCycle!

DevCycle is a feature flag management provider with robust support for user targeting, realtime updates of flag values and deep integrations with your development workflow.

The React SDK provides first-class support for flagging in React applications. It contains hooks for reading flag values and re-rendering components when those values change:

import { useVariableValue } from '@devcycle/react-client-sdk';

export function MyComponent() {
    const myVariableValue = useVariableValue('myVariable', false);
    return (
        <div>
            {myVariableValue ? 'Variable is true!' : 'Variable is false!'}
        </div>
    )
}

This SDK depends on the fetch API.

Usage

To find usage documentation, visit our docs.