Reducers interview questions
Practice 3 questions on reducers. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
3 questions
- JavaScriptCoding exercise
Streaming Chat Store Reducer
MEDIUMBuild a pure, immutable reducer that opens an assistant message, appends streamed deltas, and finalizes it.
25 minPractice - JavaScriptCoding exercise
useImmerReducer
MEDIUMWrite a reducer whose body mutates a draft, getting an immutable next state that a reducer is required to return.
25 minPractice - JavaScriptCoding exercise
useMethods
MEDIUMImplement a hook that turns a map of state transitions into bound, stable action methods over a reducer.
25 minPractice