redux icon indicating copy to clipboard operation
redux copied to clipboard

[Docs Rewrite] Create "Treat Reducers as State Machines" page

Open bolatovumar opened this issue 5 years ago • 4 comments

What docs page is being added or updated?

This bit: https://redux.js.org/style-guide/style-guide/#treat-reducers-as-state-machines

  • Section: #treat-reducers-as-state-machines
  • Page: Redux Style Guide

For Updating Existing Content

What updates should be made to the page?

Add detailed explanation for "Treat Reducers as State Machines" section

Do these updates change any of the assumptions or target audience? If so, how do they change?

No, but it would make it easier to understand with a code example provided.

bolatovumar avatar Feb 07 '20 20:02 bolatovumar

I'm willing to submit a PR for this if acked.

bolatovumar avatar Feb 07 '20 20:02 bolatovumar

Yeah, this ties into #3598 . I know @davidkpiano had offered to try writing that page.

markerikson avatar Feb 07 '20 21:02 markerikson

@bolatovumar I can help review, if you'd like! If I were to write it, it would basically be a distillation of this: https://dev.to/davidkpiano/redux-is-half-of-a-pattern-1-2-1hd7 (ignore the article title)

davidkpiano avatar Feb 07 '20 21:02 davidkpiano

@davidkpiano if you are on it then that's great. Your example from the article is great. Your article what got me to open this issue as the docs weren't anywhere as clear as your writeup.

bolatovumar avatar Feb 08 '20 03:02 bolatovumar