Skip to content

Commit 59cbbfd

Browse files
committed
Finished 64
1 parent 10c28d6 commit 59cbbfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/08-advanced-patterns/64-render-props.solution.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ interface ModalChildProps {
88
closeModal: () => void;
99
}
1010

11-
const Modal = ({
12-
children,
13-
}: {
14-
children: (props: ModalChildProps) => React.ReactNode;
15-
}) => {
11+
const Modal = ({ children }: { children: React.FC<ModalChildProps> }) => {
1612
const [isOpen, setIsOpen] = useState(false);
1713

1814
return (

0 commit comments

Comments
 (0)