Skip to content

An small React app using custom hooks to access feature flag state

Notifications You must be signed in to change notification settings

splitio-examples/react-custom-ff-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accessing feature flags via a custom React Hook ⚓

A splash of withSplitFactory and a dash of the useTreatment hook is all you need to give any React component access your Split feature flags.

Usage

You'll need to provide access to your Split account via an REACT_APP_SPLIT_API_KEY environment variable.

export REACT_APP_SPLIT_API_KEY='<YOUR_SPLIT_API_KEY>'
yarn start

Authors

👤 Talia Nassi

👤 Pete Hodgson

About

An small React app using custom hooks to access feature flag state

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published