agoda-com / agoda-com/react-handyman
[feature-toggle-jsx] withFeature HoC that has fallback when feature is not enabled
Offen
- Vorherrschende Sprache
- TypeScript
- Sterne
- 36
- Forks
- 8
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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")
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.