Local vs Global State: Search Without Redux

Hands-on practice for this lecture. Write the code, see it run, understand the pattern.

1

Exercise 1 of 1

Add Search Without Redux

Five tasks in the store. Add a working search box using only useState — no action types, no dispatch, no reducer changes.

Task

Five tasks are loading from Redux. Add a working search box — using only useState. No new action types, no reducer changes, no dispatch.

  1. Add const [search, setSearch] = useState('')
  2. Derive filteredTasks from the Redux tasks and the search string
  3. Render filteredTasks in the map
  4. Wire the input to search state
Loading editor…
Practice: Local vs Global State: Search Without Redux — Interactive Exercises | Durgesh Rai