We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e177f commit f4f2261Copy full SHA for f4f2261
src/components/utils.tsx
@@ -4,6 +4,5 @@ export function renderComponent<T>(
4
) {
5
if (!ComponentOrNode) return null
6
if (typeof ComponentOrNode !== "function") return ComponentOrNode
7
- // @ts-expect-error TS2322: Type '{}' is not assignable to type 'T'
8
- return <ComponentOrNode {...props} />
+ return <ComponentOrNode {...props!} />
9
}
0 commit comments