An open API service indexing awesome lists of open source software.

https://github.com/sheraff/react-context-select


https://github.com/sheraff/react-context-select

performance react-context react-hooks rendering selector

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

A react `createContext` that allows for selectors in `useContext`. Components only re-render if the result of the selector function changes. Use `` without any of the drawbacks.

```js
const prop = useContext(Context, ({ obj }) => obj.prop)
```