awue README
react hook脚本自动补全
Supported languages (file extensions)
- JavaScript (.js)
- TypeScript (.ts)
- JavaScript React (.jsx)
- TypeScript React (.tsx)
使用方法
触发 |
生成内容 |
uss |
const [visible, setvisible] = useState(false) |
use |
useEffect(() => { }, []) |
usm |
const a = useMemo(() => { return }, []) |
usc |
const a = useCallback( () => { }, []) |
usr |
const ref = useRef() |
rfcp |
import React, { memo, useState, useEffect } from 'react'; const Page = () => { return ( <>
</> ); }; export default memo(Page); |
Enjoy!
| |