Skip to content

Commit

Permalink
chore: Fix typo in render.ts (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnault authored and RobinMalfait committed Apr 19, 2021
1 parent 912c2e8 commit b289b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@headlessui-react/src/utils/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function _render<TTag extends ElementType, TSlot>(
'static',
])

// This allows us to use `<HeadlessUIComponent as={MyComopnent} refName="innerRef" />`
// This allows us to use `<HeadlessUIComponent as={MyComponent} refName="innerRef" />`
let refRelatedProps = props.ref !== undefined ? { [refName]: props.ref } : {}

let resolvedChildren = (typeof children === 'function' ? children(slot) : children) as
Expand Down

0 comments on commit b289b30

Please sign in to comment.