Skip to content

feature-flags-co/ffc-js-client-side-sdk-react-jotai-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The ffc-js-client-side-sdk demo for react with jotai

Get started

  1. Go to https://portal.featureflag.co create your project

  2. Create two flags in your environment

    1. hello with two options: World and Universe hello flag config
    2. counter with two options: true and false counter flag config
  3. Open src/app/ffcConfig.ts and fill the option constant with the right value

export const option: IOption = {
    secret: "USE_YOUR_ENVIRONMENT_SECRET", // replace with your won secret
    anonymous: false,
    user: { // you can keep this
        id: 'my-user',
        userName: 'my user',
        email: '',
        customizedProperties: [
            {
                "name": "sex",
                "value": "male"
            }]
    },
    devModePassword: 'thisisademo'
}
  1. Run
npm install
npm run start
  1. Results:
    1. Hello World Hello World
    2. Hello Universe Hello Universe
    3. Activate counter module Activate counter module

About

ffc-js-client-side-sdk demo for react with jotai

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published