Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 699 Bytes

File metadata and controls

21 lines (14 loc) · 699 Bytes

10 — React Timer

A timer app demonstrating MobX computed values and side effect management with React.

Concepts

  • observer — re-renders when secondsElapsed or isRunning changes
  • Computed formattingformatted getter converts seconds to MM:SS
  • Side effectssetInterval managed by the store, cleaned up via useEffect on unmount
  • Non-observable fieldsintervalId is excluded from MobX tracking

Run locally

npm install
npm run dev

Open in CodeSandbox

Open in CodeSandbox