Skip to content

Commit 782759d

Browse files
committed
Added extra detail to the comment
1 parent 76f2a1d commit 782759d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/08-advanced-patterns/70-as-prop-with-custom-components.problem.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ import { Equal, Expect } from "../helpers/type-utils";
88
*
99
* 1. Figure out the correct typings for the `Wrapper` component.
1010
*
11-
* The solution uses generics, and the ComponentType helper.
11+
* The solution uses:
12+
*
13+
* - Generics
14+
* - ElementType
15+
* - One of the following:
16+
* - ComponentPropsWithoutRef
17+
* - ComponentPropsWithRef
18+
* - ComponentProps
1219
*/
1320
export const Wrapper = (props: { as: unknown }) => {
1421
const Comp = props.as;

0 commit comments

Comments
 (0)