Skip to content

Commit 28db69a

Browse files
committed
iterrate userprops
1 parent a60b440 commit 28db69a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/labs/react/src/create-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export function createComponent<
321321
// Filters class properties and event properties out and passes the
322322
// remaining attributes to React. This allows attributes to use framework
323323
// rules for setting attributes and render correctly under SSR.
324-
for (const [k, v] of Object.entries(this.props)) {
324+
for (const [k, v] of Object.entries(userProps)) {
325325
if (reservedReactProperties.has(k)) {
326326
// React does *not* handle `className` for custom elements so
327327
// coerce it to `class` so it's handled correctly.

0 commit comments

Comments
 (0)