developit / developit/preact-redux-example

Math.random is forbidden in redux paradigm

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
198
フォーク
51
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。