Skip to content

Commit 46757b5

Browse files
authored
docs: fix typo in react.md (#1421)
1 parent 900dd73 commit 46757b5

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Try it out in the [React slots playground example](/playground/#sample=examples/
117117

118118
The `events` option takes an object that maps React prop names to event names. When a component user passes a callback prop with one of the event prop names, the wrapper will add it as an event handler for the corresponding event.
119119

120-
While the the React prop name can be whatever you want, the recommended convention is to add `on` in front of the event name. This matches how React is planning to implement event support for custom elements. You should also make sure this prop name does not collide with any existing properties on the element.
120+
While the React prop name can be whatever you want, the recommended convention is to add `on` in front of the event name. This matches how React is planning to implement event support for custom elements. You should also make sure this prop name does not collide with any existing properties on the element.
121121

122122
In TypeScript, the event type can be specified by casting the event name to the `EventName` utility type. This is a good practice to do so that React users will get the most accurate types for their event callbacks.
123123

0 commit comments

Comments
 (0)