state was assigned twice, even though it's a const, which I think will throw an error at compile time when using Babel. Renamed second assignment to store.
I cleaned up your reducers to use arrow syntax. This way you don't need to return (because implicit).
state
was assigned twice, even though it's aconst
, which I think will throw an error at compile time when using Babel. Renamed second assignment tostore
.return
(because implicit).