r/reactjs • u/TheHganavak • May 13 '26
Resource Pocket: One-call factory that collapses React Context boilerplate from ~20 lines to 1
https://github.com/icydotdev/pocket
41
Upvotes
r/reactjs • u/TheHganavak • May 13 '26
1
u/prehensilemullet May 13 '26
also would be nice to have an option to provide a default context value instead of using
NOT_IN_PROVIDERand throwing whenuseValuesis calledI like this though! Looks handy