Git Product home page Git Product logo

hello-vue3's Introduction

Vue3新特性全面剖析

  • 开发
  • alpha版:内部测试版 α
  • bate版:公开测试版 β
  • rc版:Release Candidate (候选版本)
  • stable版:稳定版

Performance

  • 重写了虚拟DOM的实现(跳过静态节点,只处理动态节点)
  • update性能提高1.3~2倍
  • SSR速度提高了2~3倍

Tree shaking

  • 可以将无用模块“剪辑”,仅打包需要的

Fragment

  • 不再限于模板中的单个根节点
- 以前称为,译作传送门 - 可在嵌套层级中等待嵌套的异步依赖项

TypeScript

  • 更好的TypeScript支持

Custom Renderer API

  • 自定义渲染器API
  • 用户可以尝试WebGL自定义渲染器

Composition API

  • 组合式API,替换原有的 Options API
    • 根据逻辑相关性组织代码,提高可读性和可维护性
    • 更好的重用逻辑代码(避免mixins混入时命名冲突的问题)
  • 但是依然可以延用 Options API

Proxy

https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Proxy

  • 响应式原理不再基于 Object.defineProperty

掌握setup和响应式系统API

https://vue-composition-api-rfc.netlify.app/zh/api.html

掌握新生命周期函数和模板refs的使用

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.