From 7eeca737fc1c8ff4a33cdf06eb3e3e0fb47089c1 Mon Sep 17 00:00:00 2001 From: kyle-ssg Date: Wed, 6 Nov 2024 10:23:37 +0000 Subject: [PATCH] Add ReactNode type --- react.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react.tsx b/react.tsx index 8c75beb..1fca260 100644 --- a/react.tsx +++ b/react.tsx @@ -18,7 +18,7 @@ export type FlagsmithContextType = { flagsmith: IFlagsmith // The flagsmith instance options?: Parameters[0] // Initialisation options, if you do not provide this you will have to call init manually serverState?: IState - children: React.ReactElement[] | React.ReactElement; + children: React.ReactNode; } export const FlagsmithProvider: FC = ({