React refactoring, off the hook(s)!
summary
Refactors a busy class component into functions and shows concrete results: state split into multiple useState hooks, performance bumps from useState, useCallback, useEffect, useReducer, a custom URL sync hook that stores filter and sort in the query string, and Jest tests that mock history to assert subscribe/unsubscribe and object-to-history calls. The color-list app is rebuilt, the URL restores state on load, and the live demo and GitHub branch named "a factory talk" work as shown.
AI-written summary · about








