Skip to content

Commit

Permalink
fix: added ? diedra mentioned isReactFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrost1 committed Jun 13, 2022
1 parent ebee667 commit 5e26bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/isReactFragment.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

export const isReactFragment = (node: React.ReactNode) => {
export const isReactFragment = (node?: React.ReactNode) => {
if (!node) return false;

if ((node as React.ReactElement)?.type) {
Expand Down

0 comments on commit 5e26bb9

Please sign in to comment.