Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>React Hooks RunnerNew to Visual Studio Code? Get it now.
React Hooks Runner

React Hooks Runner

QiuQiu

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

react-hooks-runner 介绍

  • 运行 React Hooks 不需要任何依赖

基本使用

export default () => {
  const [count, setCount] = React.useState(0);
  React.useEffect(() => {
    // axios.get()
    setTimeout(() => {
      setCount(count + 1);
    }, 1000);
  }, [count]);
  return <antd.Button type="primary">{count}</antd.Button>;
};
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft