Skip to content

Commit

Permalink
Merge pull request #182 from GrandPoohBear/GrandPoohBear-patch-1
Browse files Browse the repository at this point in the history
Update children type to be ReactNode
  • Loading branch information
rvowles authored Nov 18, 2023
2 parents 1e96856 + 1153709 commit f6fa1ad
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 f6fa1ad

Please # to comment.