Commit fb6cdc9
authored
fix: remove explicit return type for React
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->
## This PR
This PR removes the explicit `JSX.Element` return type from the type
signature of the React SDK `OpenFeatureProvider`.
`JSX.Element` is narrow for React 19+ as types have widened to include
Portals etc. & this was throwing TS compilation errors
### Related Issues
Fixes #1307
### Notes
As this is purely a type change I didn't feel it necessary to add
additional tests, happy to investigate further if required though
Signed-off-by: Sam <[email protected]>OpenFeatureProvider (#1313)1 parent 9e9d456 commit fb6cdc9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments