Skip to content

Commit 41736ac

Browse files
authored
Fix the example in the "Events" section (#1377)
1 parent 53c275c commit 41736ac

File tree

1 file changed

+2
-2
lines changed
  • packages/lit-dev-content/site/docs/v3/frameworks

1 file changed

+2
-2
lines changed

packages/lit-dev-content/site/docs/v3/frameworks/react.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ The `EventName` type is a string that takes an event interface as a type paramet
126126
```ts
127127

128128
import React from 'react';
129-
import {createComponent} from '@lit/react';
130-
import {MyElement, type EventName} from './my-element.js';
129+
import {createComponent, type EventName} from '@lit/react';
130+
import {MyElement, MyEvent} from './my-element.js';
131131

132132
export const MyElementComponent = createComponent({
133133
tagName: 'my-element',

0 commit comments

Comments
 (0)