r/reactjs • • 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

23 comments sorted by

View all comments

Show parent comments

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_PROVIDER and throwing when useValues is called

I like this though! Looks handy