Did Vue copy React, or did React copy Vue?
Many people, upon seeing Vue 3's Composition API, immediately think, “Isn't this just React Hooks? Vue is copying React!”
But in fact—React Hooks did come first!
📆 React Hooks:
Proposed at React Conf in 2018
Officially released with React 16.8 in 2019
📆 Vue Composition API:
Draft proposed in mid-2019
Officially released with Vue 3 in 2020
🤔 So Vue did indeed “borrow” the compositional logic syntax from Hooks.
But don't jump to conclusions. Vue didn't simply copy Hooks; it took a completely different technical approach:
✅ Vue has a complete reactive system (ref, reactive, watch)
✅ Logic reuse is more modular than React, making it easier to write
✅ Unlike React, it doesn't have to deal with the various dependency issues of useEffect...
In short: Vue Composition API is more like an “evolved version” of Hooks, and many developers find it more elegant than React.
🎯 In summary:
❌ Vue didn't invent the compositional approach first
✅ Vue came later but did it more thoroughly
🔁 Both sides have learned from and borrowed from each other
Besides, isn't React 18 also slowly moving toward Vue's “reactive” and “fine-grained updates” direction? 😉
🌊 The evolution of frontend development has never been about copying each other, but rather about mutual inspiration and competition.
As developers, the real winners are those who can use it comfortably!
💬 Which approach do you prefer? Hooks or Composition?


