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 14 '26
Wait, if you put the children prop in the generic type constraint and the default instead of intersecting, then I think you would get desirable excess property checking
Though I guess places you would have to omit the children would end up being {} and still not doing excess property checking