Codstak
    • Home
    • DSA
    • JavaScript
    • TypeScript
    • Node.js
    • React
    • More↓
      BlogReact PrepPricingDiscordNewsletterLeaderboard
    React challenge/hard

    Repair Incident-note History

    Challenge workspace

    60-80 min
    Real-world mini-appsPath 33/33
    ReducersState & eventsComposition

    Suggested first

    Repair the Workspace Equipment Cart

    Your workspace must pass its server-side browser checks to complete this challenge.

    Undo/Redo Editor

    Represent reversible changes with a reducer and two history stacks.

    Requirements

    • Model past, present, and future explicitly.
    • Add the old present to history on every real edit.
    • Clear future history after a new edit.
    • Disable impossible undo and redo actions.
    • Keep all transitions pure inside a typed reducer.