I'm thinking about a bold breaking change.
After this awesome PR by @d3x7r0, you can use Redux Zero with a really small API, based on Hooks:
const Counter = () => {
const store = useStore();
const count = useSelector(({ count }) => count);
const increment = useAction(({ count }) => ({ count: count + 1 }));
return (
<>
<p>Count: {count}</p>
<button onClick={increment}>Increment</button>
</>
)
}
With that, it seems that the other approaches (connect and Connect) simply don't make sense anymore.
I'm highly considering rebranding Redux Zero to be all about this three hooks. No more, no less.
What do you think?
I'm thinking about a bold breaking change.
After this awesome PR by @d3x7r0, you can use Redux Zero with a really small API, based on Hooks:
With that, it seems that the other approaches (connect and Connect) simply don't make sense anymore.
I'm highly considering rebranding Redux Zero to be all about this three hooks. No more, no less.
What do you think?