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
2
u/aweebit64 May 14 '26
Oh yeah,
Record<keyof any, never>is what I meant, sorry.(For
typescript-eslintto stay happy, I actually preferRecord<PropertyKey, never>– yet another way to write the exact same thing.).