Skip to content

useRef

自动为 useRef 推断类型。它是 shallowRef 的别名。

基本用法

tsx
import {  } from 'vue'
import {  } from 'vue-jsx-vapor'
// 或者
// import { shallowRef as useRef } from 'vue'

export const  = () => {
  ({
    : 1,
  })

  return < />
}

export default (() => {
  const  = ()
  .?.

  return (
    <>
      < ={} />
    </>
  )
})