All Projects → splitio → react-client

splitio / react-client

Licence: other
React JS SDK client for Split Software

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to react-client

php-client
PHP SDK client for Split Software
Stars: ✭ 14 (-39.13%)
Mutual labels:  split, feature-flags, feature-toggles, ab-testing, splitsoftware
python-client
Python SDK client for Split Software
Stars: ✭ 12 (-47.83%)
Mutual labels:  split, feature-flags, feature-toggles, ab-testing, splitsoftware
ruby-client
Ruby SDK client for Split Software
Stars: ✭ 22 (-4.35%)
Mutual labels:  split, feature-flags, feature-toggles, ab-testing, splitsoftware
java-client
Java SDK client for Split Software
Stars: ✭ 20 (-13.04%)
Mutual labels:  feature-flags, feature-toggles, ab-testing, splitsoftware
Javascript Client
NodeJS and Browser SDK client for Split Software
Stars: ✭ 30 (+30.43%)
Mutual labels:  split, feature-flags, feature-toggles
Tweek
Tweek - an open source feature manager
Stars: ✭ 268 (+1065.22%)
Mutual labels:  feature-flags, feature-toggles, ab-testing
Flagr
Flagr is a feature flagging, A/B testing and dynamic configuration microservice
Stars: ✭ 1,776 (+7621.74%)
Mutual labels:  feature-flags, feature-toggles, ab-testing
ld-scheduler
Schedule Launch Darkly flags on or off
Stars: ✭ 14 (-39.13%)
Mutual labels:  feature-flags, feature-toggles
java-server-sdk
LaunchDarkly Server-Side SDK for Java
Stars: ✭ 71 (+208.7%)
Mutual labels:  feature-flags, feature-toggles
doorkeeper
A Feature Toggle for PHP
Stars: ✭ 16 (-30.43%)
Mutual labels:  feature-flags, feature-toggles
flagsmith-java-client
Java Client for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://www.flagsmith.com/
Stars: ✭ 16 (-30.43%)
Mutual labels:  feature-flags, feature-toggles
VariantRetriever
VariantRetriever is a minimalist package for feature flagging
Stars: ✭ 23 (+0%)
Mutual labels:  feature-flags, ab-testing
Toggler
Feature toggle library for PHP
Stars: ✭ 18 (-21.74%)
Mutual labels:  feature-flags, feature-toggles
flagsmith
Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
Stars: ✭ 2,309 (+9939.13%)
Mutual labels:  feature-flags, feature-toggles
Split
📈 The Rack Based A/B testing framework
Stars: ✭ 2,539 (+10939.13%)
Mutual labels:  split, ab-testing
flipper
Feature Flipper, Feature Flags, Rollout Flags, Feature Toggles for Crystal
Stars: ✭ 21 (-8.7%)
Mutual labels:  feature-flags, feature-toggles
js-client-sdk
LaunchDarkly Client-side SDK for Browser JavaScript
Stars: ✭ 93 (+304.35%)
Mutual labels:  feature-flags, feature-toggles
js-sdk
JavaScript frontend SDK for ConfigCat. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
Stars: ✭ 21 (-8.7%)
Mutual labels:  feature-flags, feature-toggles
Flagsmith Api
Feature flagging and remote config service. Host yourself or use our hosted version at https://www.flagsmith.com/
Stars: ✭ 223 (+869.57%)
Mutual labels:  feature-flags, feature-toggles
Featureflags
The guide to decoupling feature rollout from code deployment for feature flag-driven development. Feature flags give a software organization the power to reduce risk, iterate quicker, and get more control.
Stars: ✭ 231 (+904.35%)
Mutual labels:  feature-flags, feature-toggles

Split SDK for React

npm version Build Status

Overview

This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience.

Twitter Follow

Compatibility

This SDK is compatible with React 16.3.0 and above, since it uses React Context API.

Some features, such as useClient and useManager, use React Hooks API that requires React 16.8.0 or later.

Getting started

Below is a simple example that describes the instantiation and most basic usage of our SDK:

import React from 'react';

// Import SDK functions
import { SplitFactory, SplitTreatments } from '@splitsoftware/splitio-react';

// Define your config object
const CONFIG = {
  core: {
    authorizationKey: 'YOUR_BROWSER_API_KEY',
    key: 'CUSTOMER_ID'
  }
};

function MyReactComponent() {
  return (
    /* Use SplitFactory to instantiate the SDK and makes it available to nested components */
    <SplitFactory config={CONFIG} >
      {/* Evaluate splits with SplitTreatments component */}
      <SplitTreatments names={['SPLIT_NAME']} >
        {({ treatments: { SPLIT_NAME }, isReady }) => {
          // Check SDK readiness using isReady prop
          if (!isReady)
            return <div>Loading SDK ...</div>;
          if (SPLIT_NAME.treatment === 'on') {
            // return JSX for on treatment
          } else if (SPLIT_NAME.treatment === 'off') {
            // return JSX for off treatment
          } else {
            // return JSX for control treatment
          }
        }}
      </SplitTreatments>
    </SplitFactory>
  );
}

Please refer to our official docs to learn about all the functionality provided by our SDK and the configuration options available for tailoring it to your current application setup.

Submitting issues

The Split team monitors all issues submitted to this issue tracker. We encourage you to use this issue tracker to submit any bug reports, feedback, and feature enhancements. We'll do our best to respond in a timely manner.

Contributing

Please see Contributors Guide to find all you need to submit a Pull Request (PR).

License

Licensed under the Apache License, Version 2.0. See: Apache License.

About Split

Split is the leading Feature Delivery Platform for engineering teams that want to confidently deploy features as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new features will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay trust Split to power their feature delivery.

To learn more about Split, contact [email protected], or get started with feature flags for free at https://www.split.io/signup.

Split has built and maintains SDKs for:

For a comprehensive list of open source projects visit our Github page.

Learn more about Split:

Visit split.io/product for an overview of Split, or visit our documentation at help.split.io for more detailed information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].