agoda-com / agoda-com/react-handyman

[feature-toggle-jsx] withFeature HoC that has fallback when feature is not enabled

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
36
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Instead of hiding the component, a fallback component will be shown instead of the actual component.
Interface would be something like this
```
withFeature(Component, FallbackComponent, "myAwesomeFeature")
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.