Demonstrates reaction — a more fine-grained alternative to autorun.
reaction(dataFn, effectFn)— separates "what to track" (data function) from "what to do" (effect function)- Selective tracking — only fires when the data function's return value changes
- Disposal —
reactionreturns a disposer function to stop tracking
npm install
npm run dev