diff --git a/src/lib/If/index.tsx b/src/lib/If/index.tsx index b1512af..2ae5ed8 100644 --- a/src/lib/If/index.tsx +++ b/src/lib/If/index.tsx @@ -5,8 +5,8 @@ interface TypeProps { is: boolean; } -function If({ is, children }: TypeProps): JSX.Element { - return <>{is ? children : null}; +function If({ is, children }: TypeProps): React.ReactNode { + return is ? children : null; } export default If;