@devcycle/react-client-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.21.0 • Public • Published

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.

Package Sidebar

Install

npm i @devcycle/react-client-sdk

Homepage

devcycle.com

Weekly Downloads

4,759

Version

1.21.0

License

MIT

Unpacked Size

19.8 kB

Total Files

20

Last publish

Collaborators

  • devcycleuser
  • jonathannorris
  • elottap
  • jstapl
  • rohit-tap
  • taplyticsuser