Skip to content

useRef

Automatically infer type for useRef. It's an alias of shallowRef.

Basic Usage

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

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

  return < />
}

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

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