Please look Announcement about @laststance/use-app-state instead.
Why React doesn't provide straightforward way to get/set value without Component hierarchy? 🤔
I saw Andrew Clark opened PR that get/settable context feature once but there is no exists it in the current Context.
I guess there is any complex circumstances barrier so I wanna investigate past PR discussion. 🕵️♂️
Anyway, I created straightforward library that simple combination of context, state, hook to make get/settable context aka you know, just global store.
Get by 😆: https://github.com/ryota-murakami/react-appstate
If you need handle entire React App states Like DarkThemeButton, uncompleted input, control modal/snackbars etc...— Ryota Murakami (@malloc007 ) November 19, 2019
React AppState provide straightforward way. 😀https://t.co/qmpF3O9afM
Thank you for reading my poor English post! ☕️
Welcome comment feel free If you know more better English, If you know more tech things, or other your special 😀🚀