DEV Community

Discussion on: Feature Flags in React with Flagged

Collapse
 
dorshinar profile image
Dor Shinar

Nice article, thank you. I do a question - what benefit does it provide over using the built in context? You can just as easily pass those feature flags with regular correct, and consume them with useContext.

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí

Flagged uses context internally, also checks you are passing an array or object and gives you the provider, the hook, the HOC and the render prop versions, along with types of you use TypeScript and has test to ensure you it will work without you needing to code it