Skip to content

Psilocine/tiny-vue3

Repository files navigation

tiny vue3


English | 中文


Overview

Tiny version of the Vue3 based on TDD, in order to learning deeply Vue3 and clarify the core logic

Feature

reactivity

  • implement reactive
  • effect.scheduler
  • effect.stop
  • track dependency collection
  • trigger triggering dependencies
  • implement readonly
  • isReactive
  • isReadonly
  • nested reactive
  • shallowReadonly
  • shallowReactive
  • isProxy
  • implement ref
  • shallowRef
  • proxyRefs
  • implement computed

runtime-core

  • component type
  • element type
  • props
  • props 和 context
  • component emit
  • proxy
  • setup
  • nextTick
  • getCurrentInstance
  • provide/inject
  • slots
  • Fragment node component
  • Text node component
  • $el

compiler-core

  • parse slots
  • parse element
  • parse text

runtime-dom

  • custom renderer

monorepo & vitest

  • refactor by pnpm monorepo
  • vitest replace jest

License

Tiny-vue3 is MIT licensed.

About

A tiny vue3 library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published