Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>qsoft-webNew to Visual Studio Code? Get it now.
qsoft-web

qsoft-web

qsoft

|
104 installs
| (0) | Free
私用,前端开发方便插件,react
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

qsoft-web vsix

作用


创建模版文件

只有在 src/arena 和 src/component 文件夹才会出现菜单

  • 创建 {react} index.tsx 和 style.ts

如何使用

结果

index.tsx

style.ts


新的 hook

  1. 在 tsx 文件编辑窗口右键
  2. 选择 hook
  3. 在点击位置向上查询函数组件, 如果查到, 在组件内第一行写入新的 hook
  • useState
  • useEffect
  • useObservable

hook右键创建

q: 为什么始终在第一行创建
a: hook不可用在if和for循环中, 各自作用域一般不关联, 见下图说明

hook说明

在 useEffect 中 count 始终为 0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft