Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updates render method generator of react-component to use automatic runtime #29214

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading