Skip to content

Commit

Permalink
Update children type to be ReactNode
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandPoohBear authored Oct 31, 2023
1 parent b874b9e commit 1153709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions featurehub-react-sdk/src/components/FeatureHub.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createContext, useEffect, useMemo, useRef, useState } from "react";
import { createContext, ReactNode, useEffect, useMemo, useRef, useState } from "react";
import {
ClientContext,
EdgeFeatureHubConfig,
Expand Down Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit 1153709

Please # to comment.