From bf5eb0e24653a94f1a5e6bfbfe1b7b1bf414697d Mon Sep 17 00:00:00 2001 From: Kevin Qi Date: Sun, 26 Jun 2022 23:23:31 -0700 Subject: [PATCH] demo: fix typing issue with react 18 --- demo/src/Demo.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/src/Demo.tsx b/demo/src/Demo.tsx index 9f0a556..a0952d7 100644 --- a/demo/src/Demo.tsx +++ b/demo/src/Demo.tsx @@ -19,10 +19,10 @@ const Code: React.FunctionComponent> = (props) ); -const Example: React.FunctionComponent<{ description: React.ReactNode }> = ({ - description, - children, -}) => ( +const Example: React.FunctionComponent<{ + description: React.ReactNode; + children: React.ReactNode; +}> = ({ description, children }) => (
{children}