3 ms·
once hooks are in, I think React Context will be a lot more usable. Right now, its composability isn't great because you have to use nested render props because
by beaconstudios 8y ago
once hooks are in, I think React Context will be a lot more usable. Right now, its composability isn't great because you have to use nested render props because it's not very HoC friendly.
React Context makes a lot of sense though, because you'll effectively be able to create your own Redux nested at any level in the DOM. This means local state will be much easier to manage and you won't have the issue of having to stuff all your disparate contextual data into one shared store.