There's an Entity for That
javascript
dev.to
This is another entry in the Inglorious Web series. It stands alone, but it leans on ideas from the first post, the architecture post, and There's No Such Thing As Local State. Once Upon A Time, There Were Ducks Back when Redux ruled the frontend, Erik Rasmussen proposed a convention called ducks: bundle a reducer, its action types, and its action creators into one file, and you'd get a portable, reusable unit of logic. Drop a cart.js duck into any app, and you'd have a working ca