diegohaz/constate
Write local state using React Hooks and lift it up to React Context only when needed with minimum effort. npm: Yarn: Constate exports a single factory method. As parameters, it receives and optional functions. It returns a tuple of [Provider, ...hooks]. It's any custom hook: You can receive props in the custom hook function.
https://github.com/diegohaz/constate