Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>retech-templateNew to Visual Studio Code? Get it now.
retech-template

retech-template

liutaotao

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

retech-template README

Features

rtd - react retech template

import { useEffect, useState } from 'react';
import { useRequest } from 'ahooks';
import { useHistory } from 'umi';
import { Button, Card, Col, Row, Select, Tabs, Typography, notification } from '@retech/ui';
import Icon, * as Icons from '@retech/icons';
import styles from './index.less';


interface testProps {
  [key: string]: any;
}


const test: React.FC<testProps> = (props) => {
const [data, setData] = useState('');

  useEffect(() => {

  }, [])

  return (<>

  </>)
}


export default test;

usq - ahooks useRequest

// get xxx
  const { run: runxxx } = useRequest(APIs.xxx, {
    manual: true,
    onSuccess: ({ data, code, message }) => {
      if (code === 0) {
        if (!message) {

        } else {
          notification.warning({ message });
        }
      } else {
        notification.warning({ message });
      }
    }
  });

editorFocus

maccmd + o 弹出提示 come on! - 待自定义

windowscmd + { 弹出提示 come on! - 待自定义

菜单栏测试点击 弹出提示 come on! - 待自定义

cmd + shift + p 输入 h 弹出提示 come on! - 待自定义

Enjoy!

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