developit / developit/preact-redux-example

Math.random is forbidden in redux paradigm

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
198
Forks
51
PR merge metrics
No merged PRs in 30d

Description

https://github.com/developit/preact-redux-example/blob/66590ec786df463b790b0603361ef21e3e178736/src/store.js#L6

`the reducer must be pure. Given the same arguments, it should calculate the next state and return it. No surprises. No side effects. No API calls. No mutations. Just a calculation`

https://redux.js.org/basics/reducers#handling-actions

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.