Hands-on practice for this lecture. Write the code, see it run, understand the pattern.
Exercise 1 of 1
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.
const [search, setSearch] = useState('')filteredTasks from the Redux tasks and the search stringfilteredTasks in the mapsearch state