Use pre-bundled DeckGL React component #8400
Unanswered
pentamorfico
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, 🙌
I know this is not the usual way to use React and Deck.gl, but I am creating a stand-alone HTML application, so that it can be portable and integrated into online notebooks, sites like Notion, etc...
As I have seen in the documentation, the correct way to use the React component of Deck.gl (DeckGL) is by importing from
@deck.gl/react
. However, I am using the standalone bundled version with unpkg. As I also see in the documentation, when using a standalone bundled version, DeckGL is a class, while when importing DeckGL from @deck.gl/react, we have it as a component directly.Is there any way to import the React component as a standalone bundled version?
Beta Was this translation helpful? Give feedback.
All reactions