From 1153709430455aa255754029d83263173355845c Mon Sep 17 00:00:00 2001 From: Andy Isaacson Date: Tue, 31 Oct 2023 15:40:42 -0700 Subject: [PATCH] Update children type to be ReactNode --- featurehub-react-sdk/src/components/FeatureHub.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/featurehub-react-sdk/src/components/FeatureHub.tsx b/featurehub-react-sdk/src/components/FeatureHub.tsx index 23fa5ea..802a4c3 100644 --- a/featurehub-react-sdk/src/components/FeatureHub.tsx +++ b/featurehub-react-sdk/src/components/FeatureHub.tsx @@ -1,4 +1,4 @@ -import { createContext, useEffect, useMemo, useRef, useState } from "react"; +import { createContext, ReactNode, useEffect, useMemo, useRef, useState } from "react"; import { ClientContext, EdgeFeatureHubConfig, @@ -31,7 +31,7 @@ type Props = { /** Interval (in milliseconds) to poll FeatureHub for updates. [default: 60 seconds] */ readonly pollInterval?: number; /** The React application tree to inject the FeatureHub client into */ - readonly children: JSX.Element; + readonly children: ReactNode; }; /**