Breaking the Framework Paradigm Debate
At a GitHub China meetup, the author reflects on Rich Harris’s critique of React, compares mutable versus immutable reactivity in Vue and React, examines functional programming foundations, and proposes a unified approach integrating mutable, immutable, and reactive patterns to transcend framework paradigm disputes.
During the first official GitHub China meetup, the speaker presented a talk titled “Breaking the Framework Paradigm Debate,” summarizing Rich Harris’s critique of React and the broader discussion of mutable versus immutable reactivity in modern frontend frameworks.
The author outlines Rich Harris’s view that many core problems in React stem from the mismatch between the inherently stateful, imperative Web APIs (DOM, BOM, CSS, JavaScript, WebGL) and React’s functional abstraction, noting that most developers struggle with React Hooks and that the React team prefers to educate developers rather than change the model.
Contrasting perspectives are presented: Vue’s mutable data model with change‑tracking, React’s immutable data model with referential equality testing, and the trade‑offs each approach entails. The author cites tweets from Vue creator Evan You and React core contributors, highlighting the nuanced positions on mutability and immutability.
Historical context is provided by referencing functional programming foundations (lambda calculus, Turing machines) and a 1989 paper on purely functional I/O systems, showing how side‑effects are handled even in functional languages.
The discussion moves to practical integration: the author’s open‑source project “bistate” demonstrates how immutable, mutable, and reactive patterns can coexist, allowing seamless switching between modes in React (e.g., using useMutate ) while preserving reactivity similar to Vue.
Finally, the author emphasizes the need for openness and collaboration across frameworks, urging developers to recognize JavaScript as a multi‑paradigm language and to build bridges between paradigms rather than treating them as exclusive beliefs.
Qunar Tech Salon
Qunar Tech Salon is a learning and exchange platform for Qunar engineers and industry peers. We share cutting-edge technology trends and topics, providing a free platform for mid-to-senior technical professionals to exchange and learn.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.