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 93d41da commit 653124eCopy full SHA for 653124e
tools/client.tsx
@@ -6,10 +6,12 @@ import * as React from "react";
6
export default function SuperJSONComponent<P>({
7
component,
8
props,
9
+ children
10
}: {
11
component: React.ComponentType<P>;
12
props: SuperJSONProps<P>;
13
+ children?: React.ReactNode;
14
}) {
15
const WithSuperJSON = withSuperJSONPage(component);
- return <WithSuperJSON {...props} />;
16
+ return <WithSuperJSON {...props}>{children}</WithSuperJSON>;
17
}
0 commit comments