MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/zbmvpe/real_code/iyv9ljy/?context=3
r/badcode • u/demon_slayer_002 • Dec 03 '22
43 comments sorted by
View all comments
Show parent comment
2
What is the alternative for easy handling of global state?
5 u/hottama Dec 04 '22 React Query, for sure. 1 u/Tsalikon Dec 04 '22 I whipped up an event bus hook that lets components subscribe to and publish events. It's SO much cleaner and more straightforward than redux or useContext
5
React Query, for sure.
1
I whipped up an event bus hook that lets components subscribe to and publish events. It's SO much cleaner and more straightforward than redux or useContext
View all comments
Show parent comment
2
u/Skipcast Dec 04 '22
What is the alternative for easy handling of global state?