Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>reactSnippetsWebNew to Visual Studio Code? Get it now.
reactSnippetsWeb

reactSnippetsWeb

457341620

|
873 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

代码块

react代码块

  • log 打印log
  • co 打印log
  • aa const一个变量
  • all promise异步变同步
  • ant 引入ant
  • an ts的any
  • asy 异步的function
  • btn antd的按钮
  • dd =带{}
  • cj 数组差集
  • cool 无状态组件
  • csa 定义数组
  • cso 定义对象
  • cst 模版解析
  • stop 阻止默认行为
  • for dom的for循环
  • fun const函数
  • geta 获取一个表单字段的val
  • hip historyPush
  • hipa historyParse
  • his 引入history
  • hui 替换换行符
  • if if的判断
  • inc 数组是否出现某个元素
  • ind 字符串是否出现某个元素
  • ist 判断数组是不等于true或者false
  • jj 数组交集
  • jss 判断对象是不是空
  • jtd 单箭头函数
  • kg 替换所有空格
  • locs 设置缓存
  • mapt 遍历ts
  • nots 禁止ts提醒
  • obk 对象遍历
  • pall 多个promise变同步
  • prd antd表单的双向
  • qc 数组去重
  • ref form的ref
  • ret return返回
  • setf 设置表单的值
  • setp 强制更新set
  • shen 深拷贝
  • shub css鼠标禁止点击
  • spi 数组的截取
  • spl 字符串转数组
  • stime 定时器
  • terr 设置表单错误
  • rest 表单的重置
  • then promise的回调
  • tof 判断数据类型
  • try try捕捉
  • getval 表单的值获取
  • usef hooks的useEffect
  • uses hooks的usestate
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft