Skip to content

Commit 8417a31

Browse files
authored
Merge pull request #270 from Flagsmith/chore/adjust-react-node-types
chore: add ReactNode type
2 parents 1af570b + 96f5056 commit 8417a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type FlagsmithContextType = {
1818
flagsmith: IFlagsmith // The flagsmith instance
1919
options?: Parameters<IFlagsmith['init']>[0] // Initialisation options, if you do not provide this you will have to call init manually
2020
serverState?: IState
21-
children: React.ReactElement[] | React.ReactElement;
21+
children: React.ReactNode;
2222
}
2323

2424
export const FlagsmithProvider: FC<FlagsmithContextType> = ({

0 commit comments

Comments
 (0)