Comonads on your everyday UI
summary
Claims that UI state and environmental requirements like the Virtual DOM map to comonads and shows concrete code: a store object with extract and extend implemented in JavaScript that renders by extract and transforms state by extend, a demo changing a message to "React Conf", composition of comonads, and comparison to Redux reducers and finite state machines. Uses React, mentions ImmutableJS, Fantasyland, Haskell/PureScript, and argues the pattern is practical with working examples.
AI-written summary · about








