Defining a Base Component for useDeviceContext(tw) #210
-
According to the docs I should use the Maybe something like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you're misunderstanding how the hook works. If you call it once, at the root of your component hierarchy, the |
Beta Was this translation helpful? Give feedback.
I think you're misunderstanding how the hook works. If you call it once, at the root of your component hierarchy, the
tw
function will have the dynamic app context anywhere and everywhere it is used throughout the app. There's no need to call it multiple times, or from every component.