Skip to content

Commit 3b951b5

Browse files
authored
Update build-custom-property-pane-controls.md
Replaced tsx with typescript. tsx do not render correctly on the Microsoft web site
1 parent 5c7e287 commit 3b951b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/spfx/web-parts/guidance/build-custom-property-pane-controls.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The web part you're building shows list items from the selected SharePoint list.
170170

171171
1. In the **src/webparts/listItems/components/ListItems.tsx** file, change the contents of the `render()` method to:
172172

173-
```tsx
173+
```typescript
174174
export default class ListItems extends React.Component<IListItemsProps, {}> {
175175
public render(): React.ReactElement<IListItemsProps> {
176176
const {
@@ -261,7 +261,7 @@ When creating a custom property pane control that uses React in the SharePoint F
261261

262262
1. Define the asynchronous dropdown React component. In the **src/controls/PropertyPaneAsyncDropdown/components** folder, create a new file named **AsyncDropdown.tsx**, and enter the following code:
263263

264-
```tsx
264+
```typescript
265265
import * as React from 'react';
266266
import { Dropdown, IDropdownOption } from 'office-ui-fabric-react/lib/components/Dropdown';
267267
import { Spinner } from 'office-ui-fabric-react/lib/components/Spinner';
@@ -683,7 +683,7 @@ When building SharePoint Framework web parts, you might need to implement a conf
683683

684684
In the **src/webparts/listItems/components/ListItems.tsx** file, change the `render()` method to:
685685

686-
```tsx
686+
```typescript
687687
export default class ListItems extends React.Component<IListItemsProps, {}> {
688688
public render(): React.ReactElement<IListItemsProps> {
689689
const {

0 commit comments

Comments
 (0)