Skip to content

useRef

A utility function that provides automatic type inference for component refs. It serves as an alias for shallowRef.

Basic Usage

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

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

   < />
}

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

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