Skip to content

Commit

Permalink
docs(react): clarify import of FeatureFlags component (#15876)
Browse files Browse the repository at this point in the history
Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
  • Loading branch information
janhassel and tay1orjones committed Mar 4, 2024
1 parent 59dbf52 commit 2e85235
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -47,6 +47,8 @@ application's react tree. Multiple feature flags can be configured at the same
time.

```jsx
import { unstable_FeatureFlags as FeatureFlags } from '@carbon/react';

<FeatureFlags
flags={{
'enable-v12-tile-default-icons': true,
Expand All @@ -63,7 +65,7 @@ entire app, or only certain pages/routes/sections of your application.
```jsx
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { FeatureFlags } from '@carbon/react';
import { unstable_FeatureFlags as FeatureFlags } from '@carbon/react';
import App from './App';

const root = createRoot(document.getElementById('root'));
Expand Down

0 comments on commit 2e85235

Please sign in to comment.