()
| 14 | }; |
| 15 | |
| 16 | const ExampleComponent = () => ( |
| 17 | <FeatureToggleProvider featureToggleList={toggles}> |
| 18 | <div> |
| 19 | <h1>Toggling Example</h1> |
| 20 | <FeatureToggle featureName={toggleNames.SHOW_HELLO_WORLD}> |
| 21 | <p>Hello World</p> |
| 22 | </FeatureToggle> |
| 23 | <FeatureToggle featureName={toggleNames.SHOW_HELLO_WORLD} showOnlyWhenDisabled> |
| 24 | <p>Sorry, toggle is off</p> |
| 25 | </FeatureToggle> |
| 26 | </div> |
| 27 | </FeatureToggleProvider> |
| 28 | ); |
| 29 | |
| 30 | |
| 31 | ReactDOM.render(<ExampleComponent />, document.getElementById('example')); |
nothing calls this directly
no outgoing calls
no test coverage detected