Skip to content

Commit 653124e

Browse files
authored
Pass children to client wrapper component (#65)
1 parent 93d41da commit 653124e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/client.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import * as React from "react";
66
export default function SuperJSONComponent<P>({
77
component,
88
props,
9+
children
910
}: {
1011
component: React.ComponentType<P>;
1112
props: SuperJSONProps<P>;
13+
children?: React.ReactNode;
1214
}) {
1315
const WithSuperJSON = withSuperJSONPage(component);
14-
return <WithSuperJSON {...props} />;
16+
return <WithSuperJSON {...props}>{children}</WithSuperJSON>;
1517
}

0 commit comments

Comments
 (0)