Check the correct use of hooks
By default most hooks infer types automatically, however here are some typing tips:
useState
const [message, setMessage] = useProp<string>();useProp
const [message, setMessage] = useProp<string>("message");useMemo and useCallback
const message = useMemo<string>(() => "i'am atomico!");useEvent
useRef
useHost
Last updated
Was this helpful?
