Skip to content

Commit

Permalink
Fix the example in the "Events" section (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendera authored Oct 15, 2024
1 parent 53c275c commit 41736ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lit-dev-content/site/docs/v3/frameworks/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ The `EventName` type is a string that takes an event interface as a type paramet
```ts

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

export const MyElementComponent = createComponent({
tagName: 'my-element',
Expand Down

0 comments on commit 41736ac

Please sign in to comment.