mobxjs / mobx-state-tree

Full-featured reactive state management without the boilerplate
https://mobx-state-tree.js.org/
MIT License
6.9k stars 640 forks source link

docs: add recipe for auto-generated property setters #2169

Closed coolsoftwaretyler closed 3 months ago

coolsoftwaretyler commented 3 months ago

What does this PR do and why?

This PR:

  1. Adds a new section to the docs site for "recipes"
  2. Adds our first recipe, which is a write-up of Infinite Red's withSetPropAction helper

Steps to validate locally

  1. Pull branch
  2. cd website && bun run build && bun run start
  3. Visit http://localhost:3000/recipes/auto-generated-property-setter-actions
  4. Read and enjoy!

I'll cherry-pick into the 5.x.x branch to publish shortly.