Skip to content

Defining a Base Component for useDeviceContext(tw) #210

Answered by jaredh159
christianbauer1 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@christianbauer1
Comment options

Answer selected by christianbauer1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants