❌ Don't pass props to multiple nested components in React.
@_georgemoller118K followers
137,487 views
10 Comments
Comments from the original post on X (Twitter)

@_georgemoller
I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and video animations just like this one. Check them out ↓
19 likes

@_georgemoller
I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and video animations just like this one. Check them out ↓
7 likes

@TkDodo
It would be cool if you could recommend importing from '@tanstack/react-query' instead of just 'react-query'. We've moved to the TanStack umbrella over a year ago.
30 likes

@_georgemoller
Will do Dominik!
2 likes

@ak_h_il_17
But using the same query inside dashboard will trigger another api call right?
4 likes

@_georgemoller
Nope, it only triggers another api call if the data is not already in the cache.
6 likes

@pavl_ro
Love this concept and react-query in general! First time I saw it was in this great article:
2 likes

@PrinceAdeyeyeMO
I use Redux for state management. React query look simpler and reduces redux broiler plate. Does react query works with React Native? Any cons I should be aware of?
2 likes

@ourystd
State colocation, right ?
1 like

@NikkiSiapno
Agree, important tip George!
1 like
