From 654b1e727b1ea8c5a86c38c5686cd96389ec1063 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Sat, 6 Apr 2024 17:35:39 -0700 Subject: [PATCH] Fix React component --- modules/react/src/deckgl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/react/src/deckgl.ts b/modules/react/src/deckgl.ts index 0f0b643bd96..14866a862c0 100644 --- a/modules/react/src/deckgl.ts +++ b/modules/react/src/deckgl.ts @@ -229,7 +229,7 @@ function DeckGLWithRef( const currentViewports = thisRef.deck && thisRef.deck.isInitialized ? thisRef.deck.getViewports() : undefined; - const {ContextProvider, width, height, id, style} = props; + const {ContextProvider, width = '100%', height = '100%', id, style} = props; const {containerStyle, canvasStyle} = useMemo( () => extractStyles({width, height, style}),