@@ -474,7 +474,7 @@ function Provider<TCanvas extends HTMLCanvasElement | OffscreenCanvas>({
474
474
children,
475
475
onCreated,
476
476
rootElement,
477
- } : ProviderProps < TCanvas > ) : JSX . Element {
477
+ } : ProviderProps < TCanvas > ) : React . JSX . Element {
478
478
useIsomorphicLayoutEffect ( ( ) => {
479
479
const state = store . getState ( )
480
480
// Flag the canvas active, rendering will now begin
@@ -529,7 +529,7 @@ export type InjectState = Partial<
529
529
}
530
530
>
531
531
532
- export function createPortal ( children : React . ReactNode , container : THREE . Object3D , state ?: InjectState ) : JSX . Element {
532
+ export function createPortal ( children : React . ReactNode , container : THREE . Object3D , state ?: InjectState ) : React . JSX . Element {
533
533
return < Portal children = { children } container = { container } state = { state } />
534
534
}
535
535
@@ -539,7 +539,7 @@ interface PortalProps {
539
539
container : THREE . Object3D
540
540
}
541
541
542
- function Portal ( { state = { } , children, container } : PortalProps ) : JSX . Element {
542
+ function Portal ( { state = { } , children, container } : PortalProps ) : React . JSX . Element {
543
543
/** This has to be a component because it would not be able to call useThree/useStore otherwise since
544
544
* if this is our environment, then we are not in r3f's renderer but in react-dom, it would trigger
545
545
* the "R3F hooks can only be used within the Canvas component!" warning:
0 commit comments