Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 666 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 666 Bytes

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