[docs] updated to reflect both useApi and FeatureFlags object

This commit is contained in:
Bilawal Hameed
2020-03-26 16:07:48 +01:00
parent 758c12101e
commit 71072da838
2 changed files with 41 additions and 6 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ import ExampleComponent from './components/ExampleComponent';
export default createPlugin({
id: 'new-plugin',
register({ router, featureFlags: { registerFeatureFlag } }) {
registerFeatureFlag('enable-example-component');
register({ router, featureFlags }) {
featureFlags.registerFeatureFlag('enable-example-component');
router.registerRoute('/new-plugin', ExampleComponent);
},