Skip to content

Commit

Permalink
docs(react): clarify import of FeatureFlags component (carbon-design-…
Browse files Browse the repository at this point in the history
…system#15876)

Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
janhassel and tay1orjones authored Mar 4, 2024
1 parent 59dbf52 commit 2e85235
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
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.