Skip to content

Sheraff/react-context-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Releases

No releases published

Packages

 
 
 

Contributors