Skip to content

Commit

Permalink
chore: favors automatic runtime instead of classic runtime (#29214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus authored Sep 21, 2023
1 parent 530a6a6 commit 979322a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions apps/public-docsite-v9/src/Concepts/Slots/Slots.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,9 @@ Both `slot.always` and `slot.optional` methods will create a slot definition tha
- `renderButton` takes in `ButtonState` and renders content.

```tsx
/** @jsxRuntime classic */
/** @jsx createElement */
/** @jsxRuntime automatic */
/** @jsxImportSource @fluentui/react-jsx-runtime */
// createElement custom JSX pragma is required to support slot creation
import { createElement } from '@fluentui/react-jsx-runtime';
import { assertSlots } from '@fluentui/react-utilities';
const renderButton_unstable = (state: ButtonState) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @jsxRuntime classic */
/** @jsx createElement */
/** @jsxRuntime automatic */
/** @jsxImportSource @fluentui/react-jsx-runtime */

import { createElement } from '@fluentui/react-jsx-runtime';
import { assertSlots } from '@fluentui/react-utilities';
import type { <%= componentName %>State, <%= componentName %>Slots } from './<%= componentName %>.types';

Expand Down

0 comments on commit 979322a

Please sign in to comment.