Skip to content

Commit 5cc805d

Browse files
committed
Tweak
1 parent 36ad22a commit 5cc805d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/08-advanced-patterns/63-lazy-load-component.problem.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ type Props = {
1111
* But it's not typed correctly, and it's not generic enough.
1212
* Fix the typing errors, and make it generic enough to support any component.
1313
*
14-
* Hint - React.ComponentProps will come in handy - as will a helper called
15-
* React.ComponentType.
14+
* Hints:
15+
*
16+
* - You'll need to make this a generic component!
17+
* - React.ComponentProps will come in handy, as will React.ComponentType
1618
*/
1719
function LazyLoad({ loader, ...props }: Props) {
1820
const LazyComponent = useMemo(() => lazy(loader), [loader]);

0 commit comments

Comments
 (0)