@mattpocockuk: Debating just straight-up banning useState in my React apps Push the agent into the black hole of success
Summary
Matt Pocock muses about banning useState in his React apps to push AI coding agents toward more structured, predictable state solutions.
View Cached Full Text
Cached at: 10/28/26, 03:41 PM
Debating just straight-up banning useState in my React apps
Push the agent into the black hole of success
Similar Articles
@mattpocockuk: I think I'm addicted to getting agents to build state machines Every time I see an agent has built a state machine (or …
Matt Pocock shares that he consistently gets better robustness and easier, more testable future updates when AI coding agents build state machines or reducers, and recommends the practice for frontend development.
@mattpocockuk: My hot take from chatting to @poteto is that we should use MORE abstractions in the AI age You can use them (combined w…
Matt Pocock argues that developers should use more abstractions in the AI age, since they constrain agents to good design decisions, improve token efficiency, and make unwinding bad abstractions cheaper when working with AI coding agents.
@mattpocockuk: Maybe Redux, or a Redux-like framework needs a comeback Having state in ONLY ONE PLACE sounds pretty beneficial to agen…
Matt Pocock suggests Redux or a Redux-like framework could make a comeback for AI agents, arguing that keeping state in one place restricts the decision space and provides a single way of doing things.
@mattpocockuk: In a phrase, "make bad code unrepresentable"
Matt Pocock argues that in the AI coding era, developers should embrace more abstractions combined with strict lint rules to constrain AI agents to making only good design decisions.
@mattpocockuk: This is really smart. There are definitely a set of rules that are too complex to lint deterministically that feel wast…
The tweet discusses using Jev as a fuzzy linter to handle complex coding guidelines that are not suitable for deterministic linting, with examples like useEffect and comment management.