Selective React Context
Summary of my bookmarked Github repositories from Jan 11th, 2022
React useContextSelector is a library that addresses the performance issues of React Context and useContext. It introduces useContextSelector, which allows selective rendering of components when a context value changes, avoiding unnecessary re-renders. The library requires peer dependencies such as use-context-selector and react scheduler, and it provides a technical memo explaining its intentional use of useReducer cheat mode. The library's API includes createContext, useContextSelector, useContext, and useContextUpdate hooks. Examples and projects that utilize the use-context-selector library are also provided.