8 Matching Annotations
  1. Dec 2022
    1. useImperativeHandle

      forwardRef类似于vue中的expose,这个hook就是为了修改里面的内容

  2. May 2022
    1. aking HMR updates consistently fast regardless of the size of your application.

      在修改时,vite只会修改当前module和链条内的临近的,所以不会随着包的增大而印象hmr

  3. Jul 2021
    1. iife – A self-executing function suitable for inclusion as a <script> tag. If you want to create a bundle for your application, you probably want to use this.

      iffe格式主要是用于在script上引入的方式

  4. Jun 2021
  5. May 2021
    1. gtag.js

      gtag比analytics多一个功能,就是可以支持使用第三方sdk,默认使用analytics.js库。

    1. if (domain) { const link = document.createElement('link') link.href = domain link.rel = 'preconnect' head.appendChild(link) }

      preconnect可以提前和外链建立好连接

      REF:https://zhuanlan.zhihu.com/p/33179052

  6. Apr 2021