jamiebuilds / unstated-next

200 bytes to never think about React state management libraries ever again
MIT License
4.18k stars 145 forks source link

Feat/with display name #100

Closed gideonstele closed 2 years ago

gideonstele commented 2 years ago

Use the Name of Hook Function as the Name of Context.

React DevTools Components Tree, Before:

<Context.Provider>
 ...

Now:

<YourUseHookName.Provider>
...