whatisgithub

What is vue-hooks?

yyx990803/vue-hooks — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2020-04-29

1,588JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

In one sentence

An archived experiment that brought React-style hooks into Vue for reusable component logic, superseded by Vue's official Composition API.

Mindmap

mindmap
  root((repo))
    What it did
      React-style hooks
      Reusable logic
      Two hook styles
    Tech stack
      JavaScript
      Vue 2
    Status
      Archived project
      Replaced by Composition API
    Audience
      Vue developers
      Framework historians

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study how Vue experimented with a React-hooks-style API before landing on the Composition API.

USE CASE 2

Learn the historical design tradeoffs between React-style useState/useEffect and Vue-native useData/useComputed.

USE CASE 3

Reference the window-resize hook example to understand composable logic patterns in older Vue code.

USE CASE 4

Compare this archived approach against Vue's official Composition API to see why the latter won out.

What is it built with?

JavaScriptVue

How does it compare?

yyx990803/vue-hooksmafintosh/csv-parseriptv-org/database
Stars1,5881,5001,481
LanguageJavaScriptJavaScriptJavaScript
Last pushed2020-04-292026-05-072026-06-21
MaintenanceDormantMaintainedActive
Setup difficultyeasyeasyeasy
Complexity2/51/51/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Archived and unmaintained, not recommended for new projects, use Vue's Composition API instead.

Copy-paste prompts

Prompt 1
Explain how this archived vue-hooks project's useState and useEffect functions compare to Vue's official Composition API.
Prompt 2
Show me the window-resize hook example from vue-hooks and how I'd rewrite it using Vue 3's Composition API today.
Prompt 3
Why was this vue-hooks project archived, and what specific advantages does the Composition API have over it?
Prompt 4
Walk me through the difference between vue-hooks' React-style API and its Vue-native useData/useComputed alternative.
Prompt 5
If I found old code using vue-hooks, how would I migrate it to Vue 3's Composition API?

Frequently asked questions

What is vue-hooks?

An archived experiment that brought React-style hooks into Vue for reusable component logic, superseded by Vue's official Composition API.

What language is vue-hooks written in?

Mainly JavaScript. The stack also includes JavaScript, Vue.

Is vue-hooks actively maintained?

Dormant — no commits in 2+ years (last push 2020-04-29).

How hard is vue-hooks to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is vue-hooks for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.